Beispiel #1
0
 public NamingGrpcRedoService(ILogger logger, NamingGrpcClientProxy clientProxy)
 {
     this._logger = logger;
     this._registeredInstances = new ConcurrentDictionary <string, InstanceRedoData>();
     this._subscribes          = new ConcurrentDictionary <string, SubscriberRedoData>();
     this._timer = new Timer(
         async x => await new RedoScheduledTask(_logger, clientProxy, this).Run().ConfigureAwait(false),
         null,
         TimeSpan.FromMilliseconds(DEFAULT_REDO_DELAY),
         TimeSpan.FromMilliseconds(DEFAULT_REDO_DELAY));
 }
Beispiel #2
0
 public RedoScheduledTask(ILogger logger, NamingGrpcClientProxy clientProxy, NamingGrpcRedoService redoService)
 {
     this._logger      = logger;
     this._clientProxy = clientProxy;
     this._redoService = redoService;
 }
Beispiel #3
0
 public NamingGrpcConnectionEventListener(ILogger logger, NamingGrpcClientProxy clientProxy)
 {
     this._logger      = logger;
     this._clientProxy = clientProxy;
 }