Interface IMessageEndpointConnection
This interface represents the "send" portion of a replication that is based
on the Message
Namespace: Couchbase.Lite.P2P
Assembly: Couchbase.Lite.dll
Syntax
public interface IMessageEndpointConnection
Remarks
NOTE: This is an enterprise edition feature
Methods
| Improve this Doc View SourceClose(Exception)
Closes the connection to the remote endpoint
Declaration
Task Close(Exception error)
Parameters
Type | Name | Description |
---|---|---|
System. |
error | The error that caused the replication to close, if any |
Returns
Type | Description |
---|---|
System. |
A task that can be awaited to determine the end of the close |
Open(IReplicatorConnection)
Opens a connection to the remote endpoint, linking it with the given
IReplicator
Declaration
Task Open(IReplicatorConnection connection)
Parameters
Type | Name | Description |
---|---|---|
IReplicator |
connection | The counterpart in the send/receive relationship which is used to signal the replication process of certain key events |
Returns
Type | Description |
---|---|
System. |
A task that can be awaited to determine the end of the open |
Send(Message)
Sends a message to the remote endpoint
Declaration
Task Send(Message message)
Parameters
Type | Name | Description |
---|---|---|
Message | message | The message to send |
Returns
Type | Description |
---|---|
System. |
A task that can be awaited to determine the end of the send |