public HttpAddressingScheme(INetworkEnvironment network) {
     Network = network;
     Name = Network.LocalIPAddress.ToString();
     var cfg = new Configuration().WithAppropriateOverrides();
     UseSsl = cfg.Get(Constants.Configuration.EncryptedTransportRequired);
     Port = cfg.Get(UseSsl ? Constants.Configuration.ExternalSecureEventListenerPort : Constants.Configuration.ExternalEventListenerPort).ToString();
 }
Example #2
0
 public ExecutionContext(INetworkEnvironment env) {
     Network = new Neighbourhood();
     StateStore = new ConcurrentDictionary<Guid, object>();
     LocalAddress = env.LocalIPAddress.ToString();
     HostName = env.HostName;
     NodeId = env.UniqueId;
 }
Example #3
0
 public BaseHttpChannel(INetworkEnvironment network, IConfiguration config) {
     Network = network;
     Config = config;
 }
 public TcpWriteableChannel(INetworkEnvironment network, IConfiguration cfg) { 
     Configuration = cfg;
     Network = network;
 }
 public HttpReadableChannel(INetworkEnvironment network) : base(network, null) {
 }
 public CommunicationsService(INetworkEnvironment env) {
     Network = env;
 }
Example #7
0
 public TcpExposedEventListener(IConfiguration cfg, IEventInterpreter<IExecutionContext> interpreter, INetworkEnvironment env, ISecurityService svc) : base(cfg, interpreter, svc) {
     NetworkHelper = env;
 }