Inheritance: System.Configuration.ConfigurationSection
Ejemplo n.º 1
0
 public virtual BusConfigurationSection ToBusConfiguration()
 {
     var config = new BusConfigurationSection();
     config.Bus.Endpoint = Endpoint;
     config.Bus.ThreadCount = ThreadCount;
     config.Bus.NumberOfRetries = NumberOfRetries;
     config.Bus.Name = Name;
     config.Bus.LoadBalancerEndpoint = LoadBalancerEndpoint;
     config.Bus.LogEndpoint = LogEndpoint;
     config.Bus.Transactional = Transactional.ToString();
     config.Security.Key = SecurityKey;
     foreach (var message in Messages)
     {
       config.MessageOwners.Add(new MessageOwnerElement
       {
         Name = message.Key,
         Endpoint = message.Value.Endpoint,
         Transactional = message.Value.Transactional.ToString()
       });
     }
     return config;
 }
Ejemplo n.º 2
0
 static RuntimeBase()
 {
     var busConfiguration = new BusConfigurationSection();
     busConfiguration.Bus.Endpoint = "msmq://localhost/Dagent.nuget";
     ServiceBusManager.SetProvider(() => new RhinoServiceBusAbstractor(busConfiguration));
 }
Ejemplo n.º 3
0
 public virtual BusConfigurationSection ToBusConfiguration()
 {
     var config = new BusConfigurationSection();
     config.Bus.Endpoint = Endpoint;
     config.Bus.ThreadCount = ThreadCount;
     config.Bus.NumberOfRetries = NumberOfRetries;
     config.Bus.Name = Name;
     config.Bus.LoadBalancerEndpoint = LoadBalancerEndpoint;
     config.Bus.LogEndpoint = LogEndpoint;
     config.Bus.QueueIsolationLevel = QueueIsolationLevel.ToString();
     config.Bus.Transactional = Transactional.ToString();
     config.Bus.Path = Path;
     config.Bus.EnablePerformanceCounters = EnablePerformanceCounter;
     config.Security.Key = SecurityKey;
     foreach (var assembly in ScanAssemblies)
         config.Assemblies.Add(new AssemblyElement { Assembly = assembly });
     foreach (var message in Messages)
     {
       config.MessageOwners.Add(new MessageOwnerElement
       {
         Name = message.Key,
         Endpoint = message.Value.Endpoint,
         Transactional = message.Value.Transactional.ToString()
       });
     }
     return config;
 }