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

Inheritance: IEventStoreConnection
Afficher le fichier Open project: EventStore/EventStore Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

public AppendToStreamAsync ( string stream, int expectedVersion ) : Task
stream string
expectedVersion int
Résultat Task

AppendToStreamAsync() public méthode

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
Résultat Task

AppendToStreamAsync() public méthode

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

Close() public méthode

public Close ( ) : void
Résultat void

ConnectAsync() public méthode

public ConnectAsync ( ) : Task
Résultat Task

ConnectToPersistentSubscription() public méthode

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
Résultat EventStore.ClientAPI.EventStorePersistentSubscriptionBase

ConnectToPersistentSubscriptionAsync() public méthode

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
Résultat Task

ContinueTransaction() public méthode

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

CreatePersistentSubscriptionAsync() public méthode

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
Résultat Task

DeletePersistentSubscriptionAsync() public méthode

public DeletePersistentSubscriptionAsync ( string stream, string groupName, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
stream string
groupName string
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
Résultat Task

DeleteStreamAsync() public méthode

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

DeleteStreamAsync() public méthode

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
Résultat Task

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetStreamMetadataAsRawBytesAsync() public méthode

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

GetStreamMetadataAsync() public méthode

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

HandleReadAllEventsForwardAsync() public méthode

public HandleReadAllEventsForwardAsync ( Func callback ) : void
callback Func
Résultat void

HandleReadStreamEventsForwardAsync() public méthode

public HandleReadStreamEventsForwardAsync ( Func callback ) : void
callback Func
Résultat void

HandleSubscribeToStreamAsync() public méthode

public HandleSubscribeToStreamAsync ( ResolvedEvent>.Func callback ) : void
callback ResolvedEvent>.Func
Résultat void

OnAuthenticationFailed() protected méthode

protected OnAuthenticationFailed ( EventStore.ClientAPI.ClientAuthenticationFailedEventArgs e ) : void
e EventStore.ClientAPI.ClientAuthenticationFailedEventArgs
Résultat void

OnClosed() protected méthode

protected OnClosed ( EventStore.ClientAPI.ClientClosedEventArgs e ) : void
e EventStore.ClientAPI.ClientClosedEventArgs
Résultat void

OnConnected() public méthode

public OnConnected ( EventStore.ClientAPI.ClientConnectionEventArgs e ) : void
e EventStore.ClientAPI.ClientConnectionEventArgs
Résultat void

OnDisconnected() protected méthode

protected OnDisconnected ( EventStore.ClientAPI.ClientConnectionEventArgs e ) : void
e EventStore.ClientAPI.ClientConnectionEventArgs
Résultat void

OnErrorOccurred() protected méthode

protected OnErrorOccurred ( EventStore.ClientAPI.ClientErrorEventArgs e ) : void
e EventStore.ClientAPI.ClientErrorEventArgs
Résultat void

OnReconnecting() protected méthode

protected OnReconnecting ( EventStore.ClientAPI.ClientReconnectingEventArgs e ) : void
e EventStore.ClientAPI.ClientReconnectingEventArgs
Résultat void

ReadAllEventsBackwardAsync() public méthode

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
Résultat Task

ReadAllEventsForwardAsync() public méthode

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
Résultat Task

ReadEventAsync() public méthode

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
Résultat Task

ReadStreamEventsBackwardAsync() public méthode

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
Résultat Task

ReadStreamEventsForwardAsync() public méthode

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
Résultat Task

SetStreamMetadataAsync() public méthode

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
Résultat Task

SetStreamMetadataAsync() public méthode

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
Résultat Task

SetSystemSettingsAsync() public méthode

public SetSystemSettingsAsync ( EventStore.ClientAPI.SystemSettings settings, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
settings EventStore.ClientAPI.SystemSettings
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
Résultat Task

StartTransactionAsync() public méthode

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

SubscribeToAllAsync() public méthode

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
Résultat Task

SubscribeToAllFrom() public méthode

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
Résultat EventStore.ClientAPI.EventStoreAllCatchUpSubscription

SubscribeToAllFrom() public méthode

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
Résultat EventStore.ClientAPI.EventStoreAllCatchUpSubscription

SubscribeToStreamAsync() public méthode

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
Résultat Task

SubscribeToStreamFrom() public méthode

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
Résultat EventStore.ClientAPI.EventStoreStreamCatchUpSubscription

SubscribeToStreamFrom() public méthode

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
Résultat EventStore.ClientAPI.EventStoreStreamCatchUpSubscription

UpdatePersistentSubscriptionAsync() public méthode

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
Résultat Task