C# Class EventStore.Core.Tests.ClientAPI.FakeEventStoreConnection

Inheritance: IEventStoreConnection
ファイルを表示 Open project: EventStore/EventStore Class Usage Examples

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
ConnectAsync ( ) : 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 ) : EventStore.ClientAPI.EventStoreTransaction
CreatePersistentSubscriptionAsync ( string stream, string groupName, EventStore.ClientAPI.PersistentSubscriptionSettings settings, EventStore.ClientAPI.SystemData.UserCredentials credentials ) : Task
DeletePersistentSubscriptionAsync ( string stream, string groupName, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : 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
Dispose ( ) : void
GetStreamMetadataAsRawBytesAsync ( string stream, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
GetStreamMetadataAsync ( string stream, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
HandleReadAllEventsForwardAsync ( Func callback ) : void
HandleReadStreamEventsForwardAsync ( Func callback ) : void
HandleSubscribeToStreamAsync ( ResolvedEvent>.Func callback ) : void
OnConnected ( EventStore.ClientAPI.ClientConnectionEventArgs e ) : void
ReadAllEventsBackwardAsync ( EventStore.ClientAPI.Position position, int maxCount, bool resolveLinkTos, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
ReadAllEventsForwardAsync ( EventStore.ClientAPI.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, EventStore.ClientAPI.StreamMetadata metadata, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
SetStreamMetadataAsync ( string stream, int expectedMetastreamVersion, byte metadata, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
SetSystemSettingsAsync ( EventStore.ClientAPI.SystemSettings settings, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : 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 ( EventStore.ClientAPI.Position lastCheckpoint, EventStore.ClientAPI.CatchUpSubscriptionSettings settings, ResolvedEvent>.Action eventAppeared, Action liveProcessingStarted = null, Action subscriptionDropped = null, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : EventStore.ClientAPI.EventStoreAllCatchUpSubscription
SubscribeToAllFrom ( EventStore.ClientAPI.Position lastCheckpoint, bool resolveLinkTos, ResolvedEvent>.Action eventAppeared, Action liveProcessingStarted = null, Action subscriptionDropped = null, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null, int readBatchSize = 500 ) : EventStore.ClientAPI.EventStoreAllCatchUpSubscription
SubscribeToStreamAsync ( string stream, bool resolveLinkTos, ResolvedEvent>.Action eventAppeared, Action subscriptionDropped = null, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
SubscribeToStreamFrom ( string stream, int lastCheckpoint, EventStore.ClientAPI.CatchUpSubscriptionSettings settings, ResolvedEvent>.Action eventAppeared, Action liveProcessingStarted = null, Action subscriptionDropped = null, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : EventStore.ClientAPI.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 ) : EventStore.ClientAPI.EventStoreStreamCatchUpSubscription
UpdatePersistentSubscriptionAsync ( string stream, string groupName, EventStore.ClientAPI.PersistentSubscriptionSettings settings, EventStore.ClientAPI.SystemData.UserCredentials credentials ) : Task

Protected Methods

Method Description
OnAuthenticationFailed ( EventStore.ClientAPI.ClientAuthenticationFailedEventArgs e ) : void
OnClosed ( EventStore.ClientAPI.ClientClosedEventArgs e ) : void
OnDisconnected ( EventStore.ClientAPI.ClientConnectionEventArgs e ) : void
OnErrorOccurred ( EventStore.ClientAPI.ClientErrorEventArgs e ) : void
OnReconnecting ( EventStore.ClientAPI.ClientReconnectingEventArgs e ) : void

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

ConnectAsync() public method

public ConnectAsync ( ) : Task
return 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 EventStore.ClientAPI.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 ) : EventStore.ClientAPI.EventStoreTransaction
transactionId long
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return EventStore.ClientAPI.EventStoreTransaction

CreatePersistentSubscriptionAsync() public method

public CreatePersistentSubscriptionAsync ( string stream, string groupName, EventStore.ClientAPI.PersistentSubscriptionSettings settings, EventStore.ClientAPI.SystemData.UserCredentials credentials ) : Task
stream string
groupName string
settings EventStore.ClientAPI.PersistentSubscriptionSettings
credentials EventStore.ClientAPI.SystemData.UserCredentials
return Task

DeletePersistentSubscriptionAsync() public method

public DeletePersistentSubscriptionAsync ( string stream, string groupName, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
stream string
groupName string
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return 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

Dispose() public method

public Dispose ( ) : void
return void

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

HandleReadAllEventsForwardAsync() public method

public HandleReadAllEventsForwardAsync ( Func callback ) : void
callback Func
return void

HandleReadStreamEventsForwardAsync() public method

public HandleReadStreamEventsForwardAsync ( Func callback ) : void
callback Func
return void

HandleSubscribeToStreamAsync() public method

public HandleSubscribeToStreamAsync ( ResolvedEvent>.Func callback ) : void
callback ResolvedEvent>.Func
return void

OnAuthenticationFailed() protected method

protected OnAuthenticationFailed ( EventStore.ClientAPI.ClientAuthenticationFailedEventArgs e ) : void
e EventStore.ClientAPI.ClientAuthenticationFailedEventArgs
return void

OnClosed() protected method

protected OnClosed ( EventStore.ClientAPI.ClientClosedEventArgs e ) : void
e EventStore.ClientAPI.ClientClosedEventArgs
return void

OnConnected() public method

public OnConnected ( EventStore.ClientAPI.ClientConnectionEventArgs e ) : void
e EventStore.ClientAPI.ClientConnectionEventArgs
return void

OnDisconnected() protected method

protected OnDisconnected ( EventStore.ClientAPI.ClientConnectionEventArgs e ) : void
e EventStore.ClientAPI.ClientConnectionEventArgs
return void

OnErrorOccurred() protected method

protected OnErrorOccurred ( EventStore.ClientAPI.ClientErrorEventArgs e ) : void
e EventStore.ClientAPI.ClientErrorEventArgs
return void

OnReconnecting() protected method

protected OnReconnecting ( EventStore.ClientAPI.ClientReconnectingEventArgs e ) : void
e EventStore.ClientAPI.ClientReconnectingEventArgs
return void

ReadAllEventsBackwardAsync() public method

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

ReadAllEventsForwardAsync() public method

public ReadAllEventsForwardAsync ( EventStore.ClientAPI.Position position, int maxCount, bool resolveLinkTos, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
position EventStore.ClientAPI.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, EventStore.ClientAPI.StreamMetadata metadata, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
stream string
expectedMetastreamVersion int
metadata EventStore.ClientAPI.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 ( EventStore.ClientAPI.SystemSettings settings, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
settings EventStore.ClientAPI.SystemSettings
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return 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 ( EventStore.ClientAPI.Position lastCheckpoint, EventStore.ClientAPI.CatchUpSubscriptionSettings settings, ResolvedEvent>.Action eventAppeared, Action liveProcessingStarted = null, Action subscriptionDropped = null, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : EventStore.ClientAPI.EventStoreAllCatchUpSubscription
lastCheckpoint EventStore.ClientAPI.Position
settings EventStore.ClientAPI.CatchUpSubscriptionSettings
eventAppeared ResolvedEvent>.Action
liveProcessingStarted Action
subscriptionDropped Action
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return EventStore.ClientAPI.EventStoreAllCatchUpSubscription

SubscribeToAllFrom() public method

public SubscribeToAllFrom ( EventStore.ClientAPI.Position lastCheckpoint, bool resolveLinkTos, ResolvedEvent>.Action eventAppeared, Action liveProcessingStarted = null, Action subscriptionDropped = null, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null, int readBatchSize = 500 ) : EventStore.ClientAPI.EventStoreAllCatchUpSubscription
lastCheckpoint EventStore.ClientAPI.Position
resolveLinkTos bool
eventAppeared ResolvedEvent>.Action
liveProcessingStarted Action
subscriptionDropped Action
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
readBatchSize int
return EventStore.ClientAPI.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, EventStore.ClientAPI.CatchUpSubscriptionSettings settings, ResolvedEvent>.Action eventAppeared, Action liveProcessingStarted = null, Action subscriptionDropped = null, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : EventStore.ClientAPI.EventStoreStreamCatchUpSubscription
stream string
lastCheckpoint int
settings EventStore.ClientAPI.CatchUpSubscriptionSettings
eventAppeared ResolvedEvent>.Action
liveProcessingStarted Action
subscriptionDropped Action
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return EventStore.ClientAPI.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 ) : EventStore.ClientAPI.EventStoreStreamCatchUpSubscription
stream string
lastCheckpoint int
resolveLinkTos bool
eventAppeared ResolvedEvent>.Action
liveProcessingStarted Action
subscriptionDropped Action
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
readBatchSize int
return EventStore.ClientAPI.EventStoreStreamCatchUpSubscription

UpdatePersistentSubscriptionAsync() public method

public UpdatePersistentSubscriptionAsync ( string stream, string groupName, EventStore.ClientAPI.PersistentSubscriptionSettings settings, EventStore.ClientAPI.SystemData.UserCredentials credentials ) : Task
stream string
groupName string
settings EventStore.ClientAPI.PersistentSubscriptionSettings
credentials EventStore.ClientAPI.SystemData.UserCredentials
return Task