Class MessageEndpointListenerConfiguration
A class for configuring a new MessageEndpointListener instance
Inheritance
Inherited Members
Namespace: Couchbase.Lite.P2P
Assembly: Couchbase.Lite.dll
Syntax
public sealed class MessageEndpointListenerConfiguration
Remarks
NOTE: This is an enterprise edition feature
Constructors
| Improve this Doc View SourceMessageEndpointListenerConfiguration(Database, ProtocolType)
Declaration
[Obsolete("MessageEndpointListenerConfiguration(Database, ProtocolType) is deprecated, please use MessageEndpointListenerConfiguration(List<Collection>, ProtocolType).")]
public MessageEndpointListenerConfiguration(Database database, ProtocolType protocolType)
Parameters
Type | Name | Description |
---|---|---|
Database | database | |
ProtocolType | protocolType |
MessageEndpointListenerConfiguration(IReadOnlyList<Collection>, ProtocolType)
Constructs a new configuration object
Declaration
public MessageEndpointListenerConfiguration(IReadOnlyList<Collection> collections, ProtocolType protocolType)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IReadOnlyList<Collection> | collections | The local collections to operate on |
ProtocolType | protocolType | The protocol type that connections to the listener use |
Remarks
NOTE: This is an enterprise edition feature
Exceptions
Type | Condition |
---|---|
CouchbaseLiteException | Throw if the given collections is null or empty. |
CouchbaseLiteException | Throw if the given collections don't contain the same database. |
CouchbaseLiteException | Throw if any collection in the given collections is not valid. |
Properties
| Improve this Doc View SourceCollections
Declaration
public IReadOnlyList<Collection> Collections { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<Collection> |
Database
[DEPRECATED] Gets the database that this listener operates on locally
Declaration
[Obsolete("Database is deprecated, please use Collections instead.")]
public Database Database { get; }
Property Value
Type | Description |
---|---|
Database |
Remarks
NOTE: This is an enterprise edition feature
ProtocolType
Gets the protocol type that connections to this listener use (note: Must match the protocol type on the corresponding MessageEndpoint on the other side)
Declaration
public ProtocolType ProtocolType { get; }
Property Value
Type | Description |
---|---|
ProtocolType |
Remarks
NOTE: This is an enterprise edition feature