Interface IConnectable
This interface provides basic methods, properties and events to build a connection with any external service.
Namespace: TeleScope.Connectors.Abstractions
Assembly: TeleScope.Connectors.Abstractions.dll
Syntax
public interface IConnectable
Properties
| Improve this Doc View SourceIsConnected
Gets the state, if the connection is established or not.
Declaration
bool IsConnected { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceConnect()
Connects to an external service.
Declaration
IConnectable Connect()
Returns
Type | Description |
---|---|
IConnectable | The calling instance. |
Disconnect()
Disconnects from an external service.
Declaration
IConnectable Disconnect()
Returns
Type | Description |
---|---|
IConnectable | The calling instance. |
Events
| Improve this Doc View SourceCompleted
The event is invoked when a type specific method or action has finished successfully.
Declaration
event ConnectorCompletedEventHandler Completed
Event Type
Type | Description |
---|---|
ConnectorCompletedEventHandler |
Connected
The event is invoked when the Connect
method has finished successfully.
Declaration
event ConnectorEventHandler Connected
Event Type
Type | Description |
---|---|
ConnectorEventHandler |
Disconnected
The event is invoked when the Disconnect
method has finished successfully.
Declaration
event ConnectorEventHandler Disconnected
Event Type
Type | Description |
---|---|
ConnectorEventHandler |
Failed
The event is invoked when any method or action has finished with a failure.
Declaration
event ConnectorFailedEventHandler Failed
Event Type
Type | Description |
---|---|
ConnectorFailedEventHandler |