///<summary> /// Triggered when the application host is ready to start the service ///</summary> public Task StartAsync(CancellationToken cancellationToken) { _logger.LogDebug("Starting the FivetService ... "); var adapter = _communicator.createObjectAdapterWithEndpoints("TheAdapter", "tcp -z -t 15000 -p " + _port); // Register in the communicator adapter.add(_theSystem, Util.stringToIdentity("TheSystem")); // Activation adapter.activate(); _theSystem.getDelay(0); //All ok return(Task.CompletedTask); }
/// <summary> /// Triggered when the application host is ready to start the service. /// </summary> public Task StartAsync(CancellationToken cancellationToken) { _logger.LogDebug("Starting the FivetService .."); // The adapter: https://doc.zeroc.com/ice/3.7/client-side-features/proxies/proxy-and-endpoints-syntax // tpc (protocol) -z (compression) -t 15000 (timeout in ms) -p 8888 (port to bind) var adapter = _communicator.createObjectAdapterWithEndpoints("TheSystem", "tcp -z -t 15000 -p " + _port); // Register in the communicator adapter.add(_theSystem, Util.stringToIdentity("TheSystem")); // Activation adapter.activate(); // FIXME: Remove _theSystem.getDelay(0); // All ok return(Task.CompletedTask); }