コード例 #1
0
ファイル: Program.cs プロジェクト: mouhong/Taro
        static void AppStart()
        {
            Database.Store.ExecuteIndex(new StoredEventIndex());

            Database.Store.Conventions.JsonContractResolver = new Taro.RavenDB.Serialization.AggregateRootContractResolver();

            var transport = new InProcessEventTransport();
            transport.Registry.RegisterHandlers(new[] { typeof(Program).Assembly });
        }
コード例 #2
0
 public void UseInProcessEventTransport(Action<InProcessEventTransportConfigurator> configure)
 {
     var transport = new InProcessEventTransport();
     configure(new InProcessEventTransportConfigurator(transport));
     _appRuntime.Container.Register<IEventTransport>(transport);
 }
コード例 #3
0
 public InProcessEventTransportConfigurator(InProcessEventTransport transport)
 {
     _transport = transport;
 }