Class BaseHub
Basic hub integration
Inheritance
System.Object
BaseHub
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Simplic.Cloud.API
Assembly: Simplic.Cloud.API.dll
Syntax
public abstract class BaseHub : IDisposable
Constructors
| Improve this Doc View SourceBaseHub(String, String, ClientBase)
Initialize new client.
Declaration
public BaseHub(string api, string hubName, ClientBase clientBase)
Parameters
Type | Name | Description |
---|---|---|
System.String | api | |
System.String | hubName | |
ClientBase | clientBase |
Properties
| Improve this Doc View SourceConnection
Gets the HubConnection
Declaration
protected HubConnection Connection { get; }
Property Value
Type | Description |
---|---|
HubConnection |
Methods
| Improve this Doc View SourceConnectionClosed(Exception)
Declaration
public virtual async Task ConnectionClosed(Exception ex)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | ex |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
ConnectionReconnected(String)
Declaration
public virtual async Task ConnectionReconnected(string arg)
Parameters
Type | Name | Description |
---|---|---|
System.String | arg |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
ConnectionReconnecting(Exception)
Declaration
public virtual async Task ConnectionReconnecting(Exception ex)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | ex |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Dispose()
Dispose connection
Declaration
public virtual void Dispose()
StartAsync()
Start connection async
Declaration
public async Task StartAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Implements
System.IDisposable