当前位置: 首页>>代码示例>>C#>>正文


C# Configuration.UseInMemoryCommandTargetStore方法代码示例

本文整理汇总了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());
        }
开发者ID:KimberlyPhan,项目名称:Its.Cqrs,代码行数:13,代码来源:UseSqlStorageForScheduledCommandsAttribute.cs

示例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>();
        }
开发者ID:charlesmccarthyirl,项目名称:Its.Cqrs,代码行数:17,代码来源:SqlCommandSchedulerTests_NonEventSourced.cs

示例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();
 }
开发者ID:KimberlyPhan,项目名称:Its.Cqrs,代码行数:4,代码来源:UseInMemoryCommandTargetStoreAttribute.cs

示例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


注:本文中的Configuration.UseInMemoryCommandTargetStore方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。