|
|
|
@ -6,6 +6,7 @@ using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Threading; |
|
|
|
using System.Threading; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using System.Threading.Tasks; |
|
|
|
|
|
|
|
using GBase.Interfaces.Settings; |
|
|
|
|
|
|
|
|
|
|
|
namespace GBase.Interfaces |
|
|
|
namespace GBase.Interfaces |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -14,6 +15,16 @@ namespace GBase.Interfaces |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
public interface IGBase : IAsyncDisposable |
|
|
|
public interface IGBase : IAsyncDisposable |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// The name of this <see cref="IGBase"/> |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
string Name { get; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// The settings of this <see cref="IGBase"/> |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
IGBaseSettings Settings { get; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// <summary> |
|
|
|
/// The <see cref="IGBaseTable"/>s of this <see cref="IGBase"/> |
|
|
|
/// The <see cref="IGBaseTable"/>s of this <see cref="IGBase"/> |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
@ -23,9 +34,10 @@ namespace GBase.Interfaces |
|
|
|
/// <summary> |
|
|
|
/// <summary> |
|
|
|
/// Initialize this <see cref="IGBase"/> |
|
|
|
/// Initialize this <see cref="IGBase"/> |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <param name="name">The name of this <see cref="IGBase"/></param> |
|
|
|
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to cancel the asynchronous operation</param> |
|
|
|
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to cancel the asynchronous operation</param> |
|
|
|
/// <returns>True if successful, false if not</returns> |
|
|
|
/// <returns>True if successful, false if not</returns> |
|
|
|
Task<bool> Init(CancellationToken cancellationToken); |
|
|
|
Task<bool> Init(string name, CancellationToken cancellationToken); |
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// <summary> |
|
|
|
/// Add a given <see cref="IGBaseTable"/> to this <see cref="IGBase"/> |
|
|
|
/// Add a given <see cref="IGBaseTable"/> to this <see cref="IGBase"/> |
|
|
|
|