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.
30 lines
684 B
30 lines
684 B
namespace StabilityMatrix.Core.Inference; |
|
|
|
public abstract class InferenceClientBase : IDisposable |
|
{ |
|
/// <summary> |
|
/// Start the connection |
|
/// </summary> |
|
public virtual Task ConnectAsync(CancellationToken cancellationToken = default) |
|
{ |
|
return Task.CompletedTask; |
|
} |
|
|
|
/// <summary> |
|
/// Close the connection to remote resources |
|
/// </summary> |
|
public virtual Task CloseAsync(CancellationToken cancellationToken = default) |
|
{ |
|
return Task.CompletedTask; |
|
} |
|
|
|
protected virtual void Dispose(bool disposing) |
|
{ |
|
} |
|
|
|
public void Dispose() |
|
{ |
|
Dispose(true); |
|
GC.SuppressFinalize(this); |
|
} |
|
}
|
|
|