상속: IEventTransport
예제 #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 });
        }
 public void UseInProcessEventTransport(Action<InProcessEventTransportConfigurator> configure)
 {
     var transport = new InProcessEventTransport();
     configure(new InProcessEventTransportConfigurator(transport));
     _appRuntime.Container.Register<IEventTransport>(transport);
 }
 public InProcessEventTransportConfigurator(InProcessEventTransport transport)
 {
     _transport = transport;
 }