Exemple #1
0
 public Worker(
     IFileService fileService, IClientService clientService, IDaemonService daemonService)
 {
     _fileService   = fileService;
     _clientService = clientService;
     _daemonService = daemonService;
 }
Exemple #2
0
 public DaemonHostedService(ILogger <DaemonHostedService> logger, IDaemonService daemonService, IHostApplicationLifetime applicationLifetime, string daemonName = null)
 {
     this.logger              = logger ?? throw new ArgumentNullException(nameof(logger));
     this.daemonService       = daemonService ?? throw new ArgumentNullException(nameof(daemonService));
     this.applicationLifetime = applicationLifetime ?? throw new ArgumentNullException(nameof(applicationLifetime));
     this.daemonName          = daemonName;
 }
Exemple #3
0
 internal Daemon(string daemonIPAndPort, ControlSpace space)
 {
     _linkedControlSpace = space;
     Name    = daemonIPAndPort;
     _daemon = ChannelFactory <IDaemonService> .CreateChannel(WCFSettings.GetTcpBinding(), new EndpointAddress(daemonIPAndPort));
 }
 ///-------------------------------------------------------------------------------------------------
 /// <summary>
 ///     Initializes a new instance of the <see cref="DaemonWorker"/> class.
 /// </summary>
 ///
 /// <param name="daemonService">    The daemon service. </param>
 ///-------------------------------------------------------------------------------------------------
 public DaemonWorker(IDaemonService daemonService)
 {
     _daemonService = daemonService;
 }