C# Class EventStore.ClientAPI.Embedded.EventStoreEmbeddedNodeConnection

Inheritance: IEventStoreConnection, IEventStoreTransactionConnection
Show file Open project: EventStore/EventStore

Public Methods

Method Description
AppendToStreamAsync ( string stream, int expectedVersion ) : Task
AppendToStreamAsync ( string stream, int expectedVersion, IEnumerable events, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
AppendToStreamAsync ( string stream, int expectedVersion, EventStore.ClientAPI.SystemData.UserCredentials userCredentials ) : Task
Close ( ) : void
CommitTransactionAsync ( EventStoreTransaction transaction, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
ConnectAsync ( ) : System.Threading.Tasks.Task
ConnectToPersistentSubscription ( string stream, string groupName, ResolvedEvent>.Action eventAppeared, Action subscriptionDropped = null, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null, int bufferSize = 10, bool autoAck = true ) : EventStorePersistentSubscriptionBase
ConnectToPersistentSubscriptionAsync ( string stream, string groupName, ResolvedEvent>.Action eventAppeared, Action subscriptionDropped = null, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null, int bufferSize = 10, bool autoAck = true ) : Task
ContinueTransaction ( long transactionId, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : EventStoreTransaction
CreatePersistentSubscriptionAsync ( string stream, string groupName, PersistentSubscriptionSettings settings, EventStore.ClientAPI.SystemData.UserCredentials userCredentials ) : System.Threading.Tasks.Task
DeletePersistentSubscriptionAsync ( string stream, string groupName, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
DeleteStreamAsync ( string stream, int expectedVersion, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
DeleteStreamAsync ( string stream, int expectedVersion, bool hardDelete, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
EventStoreEmbeddedNodeConnection ( ConnectionSettings settings, string connectionName, IPublisher publisher, ISubscriber bus, IAuthenticationProvider authenticationProvider ) : System
GetStreamMetadataAsRawBytesAsync ( string stream, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
GetStreamMetadataAsync ( string stream, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
ReadAllEventsBackwardAsync ( Position position, int maxCount, bool resolveLinkTos, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
ReadAllEventsForwardAsync ( Position position, int maxCount, bool resolveLinkTos, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
ReadEventAsync ( string stream, int eventNumber, bool resolveLinkTos, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
ReadStreamEventsBackwardAsync ( string stream, int start, int count, bool resolveLinkTos, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
ReadStreamEventsForwardAsync ( string stream, int start, int count, bool resolveLinkTos, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
SetStreamMetadataAsync ( string stream, int expectedMetastreamVersion, StreamMetadata metadata, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
SetStreamMetadataAsync ( string stream, int expectedMetastreamVersion, byte metadata, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
SetSystemSettingsAsync ( SystemSettings settings, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
StartTransactionAsync ( string stream, int expectedVersion, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
SubscribeToAllAsync ( bool resolveLinkTos, ResolvedEvent>.Action eventAppeared, Action subscriptionDropped = null, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
SubscribeToAllFrom ( Position lastCheckpoint, CatchUpSubscriptionSettings settings, ResolvedEvent>.Action eventAppeared, Action liveProcessingStarted = null, Action subscriptionDropped = null, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : EventStoreAllCatchUpSubscription
SubscribeToAllFrom ( Position lastCheckpoint, bool resolveLinkTos, ResolvedEvent>.Action eventAppeared, Action liveProcessingStarted = null, Action subscriptionDropped = null, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null, int readBatchSize = 500 ) : EventStoreAllCatchUpSubscription
SubscribeToStreamAsync ( string stream, bool resolveLinkTos, ResolvedEvent>.Action eventAppeared, Action subscriptionDropped = null, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
SubscribeToStreamFrom ( string stream, int lastCheckpoint, CatchUpSubscriptionSettings settings, ResolvedEvent>.Action eventAppeared, Action liveProcessingStarted = null, Action subscriptionDropped = null, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : EventStoreStreamCatchUpSubscription
SubscribeToStreamFrom ( string stream, int lastCheckpoint, bool resolveLinkTos, ResolvedEvent>.Action eventAppeared, Action liveProcessingStarted = null, Action subscriptionDropped = null, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null, int readBatchSize = 500 ) : EventStoreStreamCatchUpSubscription
TransactionalWriteAsync ( EventStoreTransaction transaction, IEnumerable events, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
UpdatePersistentSubscriptionAsync ( string stream, string groupName, PersistentSubscriptionSettings settings, EventStore.ClientAPI.SystemData.UserCredentials userCredentials ) : System.Threading.Tasks.Task

Private Methods

Method Description
EventStoreEmbeddedNodeConnection ( ) : System
GetUserCredentials ( ConnectionSettings settings, EventStore.ClientAPI.SystemData.UserCredentials givenCredentials ) : EventStore.ClientAPI.SystemData.UserCredentials
IDisposable ( ) : void
IEventStoreTransactionConnection ( EventStoreTransaction transaction, IEnumerable events, EventStore.ClientAPI.SystemData.UserCredentials userCredentials ) : System.Threading.Tasks.Task
IEventStoreTransactionConnection ( EventStoreTransaction transaction, EventStore.ClientAPI.SystemData.UserCredentials userCredentials ) : Task

Method Details

AppendToStreamAsync() public method

public AppendToStreamAsync ( string stream, int expectedVersion ) : Task
stream string
expectedVersion int
return Task

AppendToStreamAsync() public method

public AppendToStreamAsync ( string stream, int expectedVersion, IEnumerable events, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
stream string
expectedVersion int
events IEnumerable
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return Task

AppendToStreamAsync() public method

public AppendToStreamAsync ( string stream, int expectedVersion, EventStore.ClientAPI.SystemData.UserCredentials userCredentials ) : Task
stream string
expectedVersion int
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return Task

Close() public method

public Close ( ) : void
return void

CommitTransactionAsync() public method

public CommitTransactionAsync ( EventStoreTransaction transaction, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
transaction EventStoreTransaction
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return Task

ConnectAsync() public method

public ConnectAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

ConnectToPersistentSubscription() public method

public ConnectToPersistentSubscription ( string stream, string groupName, ResolvedEvent>.Action eventAppeared, Action subscriptionDropped = null, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null, int bufferSize = 10, bool autoAck = true ) : EventStorePersistentSubscriptionBase
stream string
groupName string
eventAppeared ResolvedEvent>.Action
subscriptionDropped Action
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
bufferSize int
autoAck bool
return EventStorePersistentSubscriptionBase

ConnectToPersistentSubscriptionAsync() public method

public ConnectToPersistentSubscriptionAsync ( string stream, string groupName, ResolvedEvent>.Action eventAppeared, Action subscriptionDropped = null, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null, int bufferSize = 10, bool autoAck = true ) : Task
stream string
groupName string
eventAppeared ResolvedEvent>.Action
subscriptionDropped Action
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
bufferSize int
autoAck bool
return Task

ContinueTransaction() public method

public ContinueTransaction ( long transactionId, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : EventStoreTransaction
transactionId long
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return EventStoreTransaction

CreatePersistentSubscriptionAsync() public method

public CreatePersistentSubscriptionAsync ( string stream, string groupName, PersistentSubscriptionSettings settings, EventStore.ClientAPI.SystemData.UserCredentials userCredentials ) : System.Threading.Tasks.Task
stream string
groupName string
settings PersistentSubscriptionSettings
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return System.Threading.Tasks.Task

DeletePersistentSubscriptionAsync() public method

public DeletePersistentSubscriptionAsync ( string stream, string groupName, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
stream string
groupName string
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return System.Threading.Tasks.Task

DeleteStreamAsync() public method

public DeleteStreamAsync ( string stream, int expectedVersion, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
stream string
expectedVersion int
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return Task

DeleteStreamAsync() public method

public DeleteStreamAsync ( string stream, int expectedVersion, bool hardDelete, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
stream string
expectedVersion int
hardDelete bool
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return Task

EventStoreEmbeddedNodeConnection() public method

public EventStoreEmbeddedNodeConnection ( ConnectionSettings settings, string connectionName, IPublisher publisher, ISubscriber bus, IAuthenticationProvider authenticationProvider ) : System
settings ConnectionSettings
connectionName string
publisher IPublisher
bus ISubscriber
authenticationProvider IAuthenticationProvider
return System

GetStreamMetadataAsRawBytesAsync() public method

public GetStreamMetadataAsRawBytesAsync ( string stream, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
stream string
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return Task

GetStreamMetadataAsync() public method

public GetStreamMetadataAsync ( string stream, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
stream string
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return Task

ReadAllEventsBackwardAsync() public method

public ReadAllEventsBackwardAsync ( Position position, int maxCount, bool resolveLinkTos, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
position Position
maxCount int
resolveLinkTos bool
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return Task

ReadAllEventsForwardAsync() public method

public ReadAllEventsForwardAsync ( Position position, int maxCount, bool resolveLinkTos, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
position Position
maxCount int
resolveLinkTos bool
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return Task

ReadEventAsync() public method

public ReadEventAsync ( string stream, int eventNumber, bool resolveLinkTos, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
stream string
eventNumber int
resolveLinkTos bool
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return Task

ReadStreamEventsBackwardAsync() public method

public ReadStreamEventsBackwardAsync ( string stream, int start, int count, bool resolveLinkTos, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
stream string
start int
count int
resolveLinkTos bool
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return Task

ReadStreamEventsForwardAsync() public method

public ReadStreamEventsForwardAsync ( string stream, int start, int count, bool resolveLinkTos, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
stream string
start int
count int
resolveLinkTos bool
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return Task

SetStreamMetadataAsync() public method

public SetStreamMetadataAsync ( string stream, int expectedMetastreamVersion, StreamMetadata metadata, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
stream string
expectedMetastreamVersion int
metadata StreamMetadata
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return Task

SetStreamMetadataAsync() public method

public SetStreamMetadataAsync ( string stream, int expectedMetastreamVersion, byte metadata, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
stream string
expectedMetastreamVersion int
metadata byte
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return Task

SetSystemSettingsAsync() public method

public SetSystemSettingsAsync ( SystemSettings settings, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
settings SystemSettings
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return System.Threading.Tasks.Task

StartTransactionAsync() public method

public StartTransactionAsync ( string stream, int expectedVersion, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
stream string
expectedVersion int
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return Task

SubscribeToAllAsync() public method

public SubscribeToAllAsync ( bool resolveLinkTos, ResolvedEvent>.Action eventAppeared, Action subscriptionDropped = null, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
resolveLinkTos bool
eventAppeared ResolvedEvent>.Action
subscriptionDropped Action
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return Task

SubscribeToAllFrom() public method

public SubscribeToAllFrom ( Position lastCheckpoint, CatchUpSubscriptionSettings settings, ResolvedEvent>.Action eventAppeared, Action liveProcessingStarted = null, Action subscriptionDropped = null, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : EventStoreAllCatchUpSubscription
lastCheckpoint Position
settings CatchUpSubscriptionSettings
eventAppeared ResolvedEvent>.Action
liveProcessingStarted Action
subscriptionDropped Action
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return EventStoreAllCatchUpSubscription

SubscribeToAllFrom() public method

public SubscribeToAllFrom ( Position lastCheckpoint, bool resolveLinkTos, ResolvedEvent>.Action eventAppeared, Action liveProcessingStarted = null, Action subscriptionDropped = null, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null, int readBatchSize = 500 ) : EventStoreAllCatchUpSubscription
lastCheckpoint Position
resolveLinkTos bool
eventAppeared ResolvedEvent>.Action
liveProcessingStarted Action
subscriptionDropped Action
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
readBatchSize int
return EventStoreAllCatchUpSubscription

SubscribeToStreamAsync() public method

public SubscribeToStreamAsync ( string stream, bool resolveLinkTos, ResolvedEvent>.Action eventAppeared, Action subscriptionDropped = null, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
stream string
resolveLinkTos bool
eventAppeared ResolvedEvent>.Action
subscriptionDropped Action
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return Task

SubscribeToStreamFrom() public method

public SubscribeToStreamFrom ( string stream, int lastCheckpoint, CatchUpSubscriptionSettings settings, ResolvedEvent>.Action eventAppeared, Action liveProcessingStarted = null, Action subscriptionDropped = null, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : EventStoreStreamCatchUpSubscription
stream string
lastCheckpoint int
settings CatchUpSubscriptionSettings
eventAppeared ResolvedEvent>.Action
liveProcessingStarted Action
subscriptionDropped Action
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return EventStoreStreamCatchUpSubscription

SubscribeToStreamFrom() public method

public SubscribeToStreamFrom ( string stream, int lastCheckpoint, bool resolveLinkTos, ResolvedEvent>.Action eventAppeared, Action liveProcessingStarted = null, Action subscriptionDropped = null, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null, int readBatchSize = 500 ) : EventStoreStreamCatchUpSubscription
stream string
lastCheckpoint int
resolveLinkTos bool
eventAppeared ResolvedEvent>.Action
liveProcessingStarted Action
subscriptionDropped Action
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
readBatchSize int
return EventStoreStreamCatchUpSubscription

TransactionalWriteAsync() public method

public TransactionalWriteAsync ( EventStoreTransaction transaction, IEnumerable events, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
transaction EventStoreTransaction
events IEnumerable
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return System.Threading.Tasks.Task

UpdatePersistentSubscriptionAsync() public method

public UpdatePersistentSubscriptionAsync ( string stream, string groupName, PersistentSubscriptionSettings settings, EventStore.ClientAPI.SystemData.UserCredentials userCredentials ) : System.Threading.Tasks.Task
stream string
groupName string
settings PersistentSubscriptionSettings
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return System.Threading.Tasks.Task