本文整理汇总了C#中Configuration.UseInMemoryCommandTargetStore方法的典型用法代码示例。如果您正苦于以下问题:C# Configuration.UseInMemoryCommandTargetStore方法的具体用法?C# Configuration.UseInMemoryCommandTargetStore怎么用?C# Configuration.UseInMemoryCommandTargetStore使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Configuration
的用法示例。
在下文中一共展示了Configuration.UseInMemoryCommandTargetStore方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Configure
protected override void Configure(Configuration configuration)
{
Command<CommandTarget>.AuthorizeDefault = (account, command) => true;
configuration.UseInMemoryCommandTargetStore()
.UseInMemoryEventStore()
.UseInMemoryCommandScheduling();
}
开发者ID:charlesmccarthyirl,项目名称:Its.Cqrs,代码行数:8,代码来源:InMemoryCommandSchedulerIdempotencyTests_NonEventSourced.cs
示例2: Configure
protected override void Configure(
Configuration configuration,
Action<IDisposable> onDispose)
{
Command<Order>.AuthorizeDefault = (account, command) => true;
configuration.UseInMemoryCommandTargetStore()
.UseInMemoryEventStore()
.UseInMemoryCommandScheduling();
}
开发者ID:commonsensesoftware,项目名称:Its.Cqrs,代码行数:10,代码来源:InMemoryCommandSchedulerIdempotencyTests_EventSourced.cs
示例3: BeforeTest
protected override void BeforeTest(ITest test, Configuration configuration)
{
var clockName = Any.CamelCaseName();
configuration
.UseInMemoryCommandTargetStore()
.UseSqlStorageForScheduledCommands(c => c.UseConnectionString(TestDatabases.CommandScheduler.ConnectionString))
.UseDependency<GetClockName>(c => _ => clockName);
configuration
.SchedulerClockRepository()
.CreateClock(clockName, Clock.Now());
}
示例4: Configure
protected override void Configure(Configuration configuration)
{
disposables = new CompositeDisposable();
clockName = Any.CamelCaseName();
configuration.UseInMemoryCommandTargetStore()
.TraceScheduledCommands()
.UseSqlEventStore(c =>
c.UseConnectionString(TestDatabases.EventStore.ConnectionString))
.UseSqlStorageForScheduledCommands(c =>
c.UseConnectionString(TestDatabases.CommandScheduler.ConnectionString))
.UseDependency<GetClockName>(_ => command => clockName);
scheduler = configuration.CommandScheduler<CommandTarget>();
store = configuration.Store<CommandTarget>();
}
示例5: Configure
protected override void Configure(Configuration configuration)
{
base.Configure(configuration);
configuration.UseInMemoryCommandTargetStore();
}
开发者ID:charlesmccarthyirl,项目名称:Its.Cqrs,代码行数:6,代码来源:SqlCommandSchedulerIdempotencyTests_NonEventSourced.cs
示例6: BeforeTest
protected override void BeforeTest(ITest test, Configuration configuration)
{
configuration.UseInMemoryCommandTargetStore();
}
示例7: Configure
protected override void Configure(Configuration configuration)
{
configuration.UseInMemoryCommandTargetStore()
.UseInMemoryEventStore()
.UseInMemoryCommandScheduling();
}
开发者ID:charlesmccarthyirl,项目名称:Its.Cqrs,代码行数:6,代码来源:InMemoryCommandSchedulerIdempotencyTests_EventSourced.cs
示例8: Configure
protected override void Configure(Configuration configuration, Action<IDisposable> onDispose)
{
base.Configure(configuration, onDispose);
configuration.UseInMemoryCommandTargetStore();
}
开发者ID:commonsensesoftware,项目名称:Its.Cqrs,代码行数:6,代码来源:SqlCommandSchedulerIdempotencyTests_NonEventSourced.cs