예제 #1
0
        public KillSwitch(KillSwitchOptions options, IReceiveEndpoint receiveEndpoint)
        {
            _options         = options;
            _receiveEndpoint = receiveEndpoint;

            LogContext = Context.LogContext.Current;

            _state = new StartedKillSwitchState(this);
        }
예제 #2
0
        public KillSwitchReceiveEndpointObserver(KillSwitchOptions options)
        {
            _options = options;

            _killSwitches = new Dictionary <Uri, KillSwitch>();
        }
 public KillSwitchReceiveEndpointConfiguratorObserver(KillSwitchOptions options)
 {
     _observer = new KillSwitchReceiveEndpointObserver(options);
 }