本文整理汇总了C#中EventStore.Projections.Core.Services.Processing.ProjectionNamesBuilder.GetEmittedStreamsCheckpointName方法的典型用法代码示例。如果您正苦于以下问题:C# ProjectionNamesBuilder.GetEmittedStreamsCheckpointName方法的具体用法?C# ProjectionNamesBuilder.GetEmittedStreamsCheckpointName怎么用?C# ProjectionNamesBuilder.GetEmittedStreamsCheckpointName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EventStore.Projections.Core.Services.Processing.ProjectionNamesBuilder
的用法示例。
在下文中一共展示了ProjectionNamesBuilder.GetEmittedStreamsCheckpointName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Given
protected override void Given()
{
_ioDispatcher = new IODispatcher(_node.Node.MainQueue, new PublishEnvelope(_node.Node.MainQueue));
_node.Node.MainBus.Subscribe(_ioDispatcher.BackwardReader);
_node.Node.MainBus.Subscribe(_ioDispatcher.ForwardReader);
_node.Node.MainBus.Subscribe(_ioDispatcher.Writer);
_node.Node.MainBus.Subscribe(_ioDispatcher.StreamDeleter);
_node.Node.MainBus.Subscribe(_ioDispatcher.Awaker);
_node.Node.MainBus.Subscribe(_ioDispatcher);
_projectionNamesBuilder = ProjectionNamesBuilder.CreateForTest(_projectionName);
_emittedStreamsTracker = new EmittedStreamsTracker(_ioDispatcher, new ProjectionConfig(null, 1000, 1000 * 1000, 100, 500, true, true, false, false, false, _trackEmittedStreams), _projectionNamesBuilder);
_emittedStreamsDeleter = new EmittedStreamsDeleter(_ioDispatcher, _projectionNamesBuilder.GetEmittedStreamsName(), _projectionNamesBuilder.GetEmittedStreamsCheckpointName());
}
示例2: DeleteProjectionStreams
public void DeleteProjectionStreams()
{
var sourceDefinition = PersistedProjectionState.SourceDefinition ?? new ProjectionSourceDefinition();
var projectionNamesBuilder = new ProjectionNamesBuilder(_name, sourceDefinition);
if (PersistedProjectionState.DeleteCheckpointStream)
{
DeleteStream(projectionNamesBuilder.MakeCheckpointStreamName(), DeleteIfConditionsAreMet);
}
if (PersistedProjectionState.DeleteEmittedStreams)
{
if (_emittedStreamsDeleter == null)
{
_emittedStreamsDeleter = new EmittedStreamsDeleter(
_ioDispatcher,
projectionNamesBuilder.GetEmittedStreamsName(),
projectionNamesBuilder.GetEmittedStreamsCheckpointName());
}
_emittedStreamsDeleter.DeleteEmittedStreams(DeleteIfConditionsAreMet);
}
if(!PersistedProjectionState.DeleteCheckpointStream &&
!PersistedProjectionState.DeleteEmittedStreams)
{
DeleteIfConditionsAreMet();
}
}