Ejemplo n.º 1
0
 public Worker(
     IFileService fileService, IClientService clientService, IDaemonService daemonService)
 {
     _fileService   = fileService;
     _clientService = clientService;
     _daemonService = daemonService;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 3
0
 internal Daemon(string daemonIPAndPort, ControlSpace space)
 {
     _linkedControlSpace = space;
     Name    = daemonIPAndPort;
     _daemon = ChannelFactory <IDaemonService> .CreateChannel(WCFSettings.GetTcpBinding(), new EndpointAddress(daemonIPAndPort));
 }
Ejemplo n.º 4
0
 ///-------------------------------------------------------------------------------------------------
 /// <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;
 }