Пример #1
0
 public GreyHoundRegistry(GreyHoundConfigurator configurator) : base(typeof(MsmqEndpoint))
 {
     configurator.EndPoints.ForEach(RegisterEndpoint);
     MsmqEndpointConfigurator.Defaults(c =>
                                           {
                                               c.CreateMissingQueues = configurator.CreateMissingQueues;
                                               c.CreateTransactionalQueues = configurator.CreateTxQueues;
                                               c.PurgeOnStartup = configurator.PurgeOnStart;
                                           });
 }
Пример #2
0
 private static GreyHoundRegistry GetRegistry(Action<GreyHoundConfigurator> configure)
 {
     var configurator = new GreyHoundConfigurator();
     configure(configurator);
     return new GreyHoundRegistry(configurator);
 }