You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1011 B
33 lines
1011 B
// Author: Gockner, Simon
|
|
// Created: 2020-02-10
|
|
// Copyright(c) 2020 SimonG. All Rights Reserved.
|
|
|
|
using System.Threading.Tasks;
|
|
using GBase.Client.Interfaces;
|
|
using GBase.Client.Services;
|
|
|
|
namespace GBase.Client
|
|
{
|
|
public class GBaseClient : IGBaseClient //TODO: Add logging?
|
|
{
|
|
public GBaseClient(IGBaseClientSettings settings)
|
|
{
|
|
GBase = new GBaseService(settings.ServerProtocolGBaseEndpointAddress);
|
|
GBaseTable = new GBaseTableService(settings.ServerProtocolGBaseTableEndpointAddress);
|
|
GBaseEntry = new GBaseEntryService(settings.ServerProtocolGBaseEntryEndpointAddress);
|
|
}
|
|
|
|
|
|
public GBaseService GBase { get; }
|
|
public GBaseTableService GBaseTable { get; }
|
|
public GBaseEntryService GBaseEntry { get; }
|
|
|
|
|
|
public async ValueTask DisposeAsync()
|
|
{
|
|
await GBase.DisposeAsync();
|
|
await GBaseTable.DisposeAsync();
|
|
await GBaseEntry.DisposeAsync();
|
|
}
|
|
}
|
|
} |