private IOperation BuildClientHostOperation()
        {
            var processId  = Process.GetCurrentProcess().Id;
            var factory    = new HostObjectFactory();
            var clientHost = new ClientHost(context.AppConfig.ClientAddress, factory, ModuleLogger(nameof(ClientHost)), processId, FIVE_SECONDS);
            var operation  = new CommunicationHostOperation(clientHost, logger);

            context.ClientHost = clientHost;
            context.ClientHost.AuthenticationToken = authenticationToken;

            return(operation);
        }
Beispiel #2
0
        private IOperation BuildClientHostOperation()
        {
            const int FIVE_SECONDS = 5000;
            var       processId    = Process.GetCurrentProcess().Id;
            var       factory      = new HostObjectFactory();
            var       host         = new ClientHost(configuration.AppConfig.ClientAddress, factory, new ModuleLogger(logger, nameof(ClientHost)), processId, FIVE_SECONDS);
            var       operation    = new CommunicationHostOperation(host, logger);

            clientHost = host;
            clientHost.AuthenticationToken = authenticationToken;

            return(operation);
        }