C# Class EventStore.Projections.Core.Services.Management.ManagedProjection

managed projection controls start/stop/create/update/delete lifecycle of the projection.
Inheritance: IDisposable
显示文件 Open project: EventStore/EventStore Class Usage Examples

Private Properties

Property Type Description
Abort void
CreateCreateAndPrepareMessage EventStore.Core.Messaging.Message
CreateDefaultProjectionConfiguration ProjectionConfig
CreatePreparedMessage EventStore.Projections.Core.Messages.CoreProjectionManagementMessage.CreatePrepared
Delete void
DeleteIfConditionsAreMet void
DeleteStream void
DeleteStreamCompleted void
Disable void
DisposeCoreProjection void
Enable void
FixUpOldFormat void
FixUpOldProjectionRunAs void
FixupOldProjectionModes void
IsExpiredProjection bool
LoadPersistedState void
LoadStopped void
PersistedStateReadCompleted void
Prepare void
ReadPersistedState void
Reply void
Reset void
SetLastReplyEnvelope void
SetRunAs void
SetState void
Start void
StartCompleted void
StartOrLoadStopped void
StopUnlessPreparedOrLoaded void
UpdateProjectionVersion void
UpdateQuery void
WritePersistedState void
WritePersistedStateCompleted void
WriteStartOrLoadStopped void

Public Methods

Method Description
DeleteProjectionStreams ( ) : void
Dispose ( ) : void
Fault ( string reason ) : void
GetStatistics ( ) : ProjectionStatistics
Handle ( CoreProjectionStatusMessage message ) : void
Handle ( ProjectionManagementMessage message ) : void
InitializeExisting ( string name ) : void
InitializeNew ( PersistedState persistedState, IEnvelope replyEnvelope ) : void
ManagedProjection ( System.Guid workerId, System.Guid id, int projectionId, string name, bool enabledToRun, ILogger logger, ClientMessage.DeleteStreamCompleted>.RequestResponseDispatcher streamDispatcher, ClientMessage.WriteEventsCompleted>.RequestResponseDispatcher writeDispatcher, ClientMessage.ReadStreamEventsBackwardCompleted>.RequestResponseDispatcher readDispatcher, IPublisher output, ITimeProvider timeProvider, CoreProjectionStatusMessage.StateReport>.RequestResponseDispatcher getStateDispatcher, CoreProjectionStatusMessage.ResultReport>.RequestResponseDispatcher getResultDispatcher, IODispatcher ioDispatcher, bool isSlave = false, System.Guid slaveMasterWorkerId = default(Guid), System.Guid slaveMasterCorrelationId = default(Guid) ) : System
PrepareOrWriteStartOrLoadStopped ( ) : void

Private Methods

Method Description
Abort ( ) : void
CreateCreateAndPrepareMessage ( ProjectionConfig config ) : EventStore.Core.Messaging.Message
CreateDefaultProjectionConfiguration ( ) : ProjectionConfig
CreatePreparedMessage ( ProjectionConfig config ) : EventStore.Projections.Core.Messages.CoreProjectionManagementMessage.CreatePrepared
Delete ( ) : void
DeleteIfConditionsAreMet ( ) : void
DeleteStream ( string streamId, System.Action completed ) : void
DeleteStreamCompleted ( ClientMessage message, string streamId, System.Action completed ) : void
Disable ( ) : void
DisposeCoreProjection ( ) : void
Enable ( ) : void
FixUpOldFormat ( ClientMessage completed, PersistedState persistedState ) : void
FixUpOldProjectionRunAs ( PersistedState persistedState ) : void
FixupOldProjectionModes ( PersistedState persistedState ) : void
IsExpiredProjection ( ) : bool
LoadPersistedState ( PersistedState persistedState ) : void
LoadStopped ( ) : void
PersistedStateReadCompleted ( ClientMessage completed ) : void
Prepare ( ProjectionConfig config, EventStore.Core.Messaging.Message message ) : void
ReadPersistedState ( string name ) : void
Reply ( ) : void
Reset ( ) : void
SetLastReplyEnvelope ( IEnvelope envelope ) : void
SetRunAs ( ProjectionManagementMessage message ) : void
SetState ( ManagedProjectionState value ) : void
Start ( ) : void
StartCompleted ( ) : void
StartOrLoadStopped ( ) : void
StopUnlessPreparedOrLoaded ( ) : void
UpdateProjectionVersion ( bool force = false ) : void
UpdateQuery ( ProjectionManagementMessage message ) : void
WritePersistedState ( ) : void
WritePersistedStateCompleted ( ClientMessage message, string eventStreamId ) : void
WriteStartOrLoadStopped ( ) : void

Method Details

DeleteProjectionStreams() public method

public DeleteProjectionStreams ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Fault() public method

public Fault ( string reason ) : void
reason string
return void

GetStatistics() public method

public GetStatistics ( ) : ProjectionStatistics
return ProjectionStatistics

Handle() public method

public Handle ( CoreProjectionStatusMessage message ) : void
message CoreProjectionStatusMessage
return void

Handle() public method

public Handle ( ProjectionManagementMessage message ) : void
message ProjectionManagementMessage
return void

InitializeExisting() public method

public InitializeExisting ( string name ) : void
name string
return void

InitializeNew() public method

public InitializeNew ( PersistedState persistedState, IEnvelope replyEnvelope ) : void
persistedState PersistedState
replyEnvelope IEnvelope
return void

ManagedProjection() public method

public ManagedProjection ( System.Guid workerId, System.Guid id, int projectionId, string name, bool enabledToRun, ILogger logger, ClientMessage.DeleteStreamCompleted>.RequestResponseDispatcher streamDispatcher, ClientMessage.WriteEventsCompleted>.RequestResponseDispatcher writeDispatcher, ClientMessage.ReadStreamEventsBackwardCompleted>.RequestResponseDispatcher readDispatcher, IPublisher output, ITimeProvider timeProvider, CoreProjectionStatusMessage.StateReport>.RequestResponseDispatcher getStateDispatcher, CoreProjectionStatusMessage.ResultReport>.RequestResponseDispatcher getResultDispatcher, IODispatcher ioDispatcher, bool isSlave = false, System.Guid slaveMasterWorkerId = default(Guid), System.Guid slaveMasterCorrelationId = default(Guid) ) : System
workerId System.Guid
id System.Guid
projectionId int
name string
enabledToRun bool
logger ILogger
streamDispatcher ClientMessage.DeleteStreamCompleted>.RequestResponseDispatcher
writeDispatcher ClientMessage.WriteEventsCompleted>.RequestResponseDispatcher
readDispatcher ClientMessage.ReadStreamEventsBackwardCompleted>.RequestResponseDispatcher
output IPublisher
timeProvider ITimeProvider
getStateDispatcher CoreProjectionStatusMessage.StateReport>.RequestResponseDispatcher
getResultDispatcher CoreProjectionStatusMessage.ResultReport>.RequestResponseDispatcher
ioDispatcher IODispatcher
isSlave bool
slaveMasterWorkerId System.Guid
slaveMasterCorrelationId System.Guid
return System

PrepareOrWriteStartOrLoadStopped() public method

public PrepareOrWriteStartOrLoadStopped ( ) : void
return void