C# Class EventStore.ClientAPI.EventStoreConnection

Contains factory methods for building connections to an Event Store server.
Show file Open project: EventStore/EventStore Class Usage Examples

Public Methods

Method Description
Create ( EventStore.ClientAPI.ConnectionSettings connectionSettings, EventStore.ClientAPI.ClusterSettings clusterSettings, string connectionName = null ) : IEventStoreConnection

Creates a new IEventStoreConnection to EventStore cluster using specific ConnectionSettings and ClusterSettings

Create ( EventStore.ClientAPI.ConnectionSettings connectionSettings, IPEndPoint tcpEndPoint, string connectionName = null ) : IEventStoreConnection

Creates a new IEventStoreConnection to single node using specific ConnectionSettings

Create ( EventStore.ClientAPI.ConnectionSettings connectionSettings, Uri uri, string connectionName = null ) : IEventStoreConnection

Creates a new IEventStoreConnection to single node using default ConnectionSettings

Create ( EventStore.ClientAPI.ConnectionSettings connectionSettings, string connectionName = null ) : IEventStoreConnection

Creates a new IEventStoreConnection to single node using ConnectionSettings passed

Create ( IPEndPoint tcpEndPoint, string connectionName = null ) : IEventStoreConnection

Creates a new IEventStoreConnection to single node using default ConnectionSettings

Create ( Uri uri, string connectionName = null ) : IEventStoreConnection

Creates a new IEventStoreConnection to single node using default ConnectionSettings

Create ( string connectionString, string connectionName = null ) : IEventStoreConnection

Creates a new IEventStoreConnection to single node using default ConnectionSettings provided via a connectionstring

Private Methods

Method Description
GetCredentialFromUri ( Uri uri ) : EventStore.ClientAPI.SystemData.UserCredentials
GetSingleNodeIPEndPointFrom ( Uri uri ) : IPEndPoint
GetUriFromConnectionString ( string connectionString ) : Uri

Method Details

Create() public static method

Creates a new IEventStoreConnection to EventStore cluster using specific ConnectionSettings and ClusterSettings
public static Create ( EventStore.ClientAPI.ConnectionSettings connectionSettings, EventStore.ClientAPI.ClusterSettings clusterSettings, string connectionName = null ) : IEventStoreConnection
connectionSettings EventStore.ClientAPI.ConnectionSettings The to apply to the new connection
clusterSettings EventStore.ClientAPI.ClusterSettings The that determine cluster behavior.
connectionName string Optional name of connection (will be generated automatically, if not provided)
return IEventStoreConnection

Create() public static method

Creates a new IEventStoreConnection to single node using specific ConnectionSettings
public static Create ( EventStore.ClientAPI.ConnectionSettings connectionSettings, IPEndPoint tcpEndPoint, string connectionName = null ) : IEventStoreConnection
connectionSettings EventStore.ClientAPI.ConnectionSettings The to apply to the new connection
tcpEndPoint System.Net.IPEndPoint The to connect to.
connectionName string Optional name of connection (will be generated automatically, if not provided)
return IEventStoreConnection

Create() public static method

Creates a new IEventStoreConnection to single node using default ConnectionSettings
public static Create ( EventStore.ClientAPI.ConnectionSettings connectionSettings, Uri uri, string connectionName = null ) : IEventStoreConnection
connectionSettings EventStore.ClientAPI.ConnectionSettings The to apply to the new connection
uri System.Uri The Uri to connect to. It can be tcp:// to point to a single node or discover:// to discover nodes via dns
connectionName string Optional name of connection (will be generated automatically, if not provided)
return IEventStoreConnection

Create() public static method

Creates a new IEventStoreConnection to single node using ConnectionSettings passed
public static Create ( EventStore.ClientAPI.ConnectionSettings connectionSettings, string connectionName = null ) : IEventStoreConnection
connectionSettings EventStore.ClientAPI.ConnectionSettings The to apply to the new connection
connectionName string Optional name of connection (will be generated automatically, if not provided)
return IEventStoreConnection

Create() public static method

Creates a new IEventStoreConnection to single node using default ConnectionSettings
public static Create ( IPEndPoint tcpEndPoint, string connectionName = null ) : IEventStoreConnection
tcpEndPoint System.Net.IPEndPoint The to connect to.
connectionName string Optional name of connection (will be generated automatically, if not provided)
return IEventStoreConnection

Create() public static method

Creates a new IEventStoreConnection to single node using default ConnectionSettings
public static Create ( Uri uri, string connectionName = null ) : IEventStoreConnection
uri System.Uri The Uri to connect to. It can be tcp:// to point to a single node or discover:// to discover nodes
connectionName string Optional name of connection (will be generated automatically, if not provided)
return IEventStoreConnection

Create() public static method

Creates a new IEventStoreConnection to single node using default ConnectionSettings provided via a connectionstring
public static Create ( string connectionString, string connectionName = null ) : IEventStoreConnection
connectionString string The connection string to for this connection.
connectionName string Optional name of connection (will be generated automatically, if not provided)
return IEventStoreConnection