Class EventStoreConnectionHelper<TAuthenticationToken>
Creates instances of EventStore.ClientAPI.IEventStoreConnection.
Inheritance
System.Object
EventStoreConnectionHelper<TAuthenticationToken>
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: Cqrs.EventStore
Assembly: Cqrs.EventStore.dll
Syntax
public class EventStoreConnectionHelper<TAuthenticationToken> : IEventStoreConnectionHelper
Type Parameters
Name | Description |
---|---|
TAuthenticationToken | The System.Type of the authentication token. |
Constructors
EventStoreConnectionHelper(IEventBuilder<TAuthenticationToken>, IConfigurationManager)
Instantiates a new instance of EventStoreConnectionHelper<TAuthenticationToken>
Declaration
public EventStoreConnectionHelper(IEventBuilder<TAuthenticationToken> eventBuilder, IConfigurationManager configurationManager)
Parameters
Type | Name | Description |
---|---|---|
IEventBuilder<TAuthenticationToken> | eventBuilder | The IEventBuilder<TAuthenticationToken> that is used. |
IConfigurationManager | configurationManager | The IConfigurationManager that is used. |
Properties
ConfigurationManager
The IConfigurationManager that is used.
Declaration
protected IConfigurationManager ConfigurationManager { get; }
Property Value
Type | Description |
---|---|
IConfigurationManager |
EventBuilder
The IEventBuilder<TAuthenticationToken> that is used.
Declaration
protected IEventBuilder<TAuthenticationToken> EventBuilder { get; }
Property Value
Type | Description |
---|---|
IEventBuilder<TAuthenticationToken> |
Methods
GetEventStoreClientName()
Get the client name from the ConfigurationManager that describes the client that will connect to the server.
Declaration
protected virtual string GetEventStoreClientName()
Returns
Type | Description |
---|---|
System.String |
GetEventStoreConnection()
Gets a EventStore.ClientAPI.IEventStoreConnection
Declaration
public virtual IEventStoreConnection GetEventStoreConnection()
Returns
Type | Description |
---|---|
EventStore.ClientAPI.IEventStoreConnection |
Implements
GetEventStoreConnectionLogStreamName()
Get the connection stream name from the ConfigurationManager.
Declaration
protected virtual string GetEventStoreConnectionLogStreamName()
Returns
Type | Description |
---|---|
System.String |
GetEventStoreIpEndPoint()
Get the IP address of the server from the ConfigurationManager.
Declaration
protected virtual IPEndPoint GetEventStoreIpEndPoint()
Returns
Type | Description |
---|---|
System.Net.IPEndPoint |