Interface IProcessService
A server application managed by a locator implementation such as IceGrid hosts a Process service and registers a proxy to this service with the locator registry. See SetServerProcessProxyAsync(string, ProcessProxy, IFeatureCollection?, CancellationToken).
[SliceTypeId("::Ice::Process")]
[DefaultServicePath("/Ice.Process")]
public interface IProcessService
Remarks
The Slice compiler generated this server-side interface from Slice interface Ice::Process.
Your service implementation must implement this interface.
Methods
ShutdownAsync(IFeatureCollection, CancellationToken)
Initiates a graceful shutdown of the server application.
ValueTask ShutdownAsync(IFeatureCollection features, CancellationToken cancellationToken)
Parameters
featuresIFeatureCollectionThe dispatch features.
cancellationTokenCancellationTokenA cancellation token that receives the cancellation requests.
Returns
- ValueTask
A value task that completes when this implementation completes.
WriteMessageAsync(string, int, IFeatureCollection, CancellationToken)
Writes a message on the server application's stdout or stderr.
ValueTask WriteMessageAsync(string message, int fd, IFeatureCollection features, CancellationToken cancellationToken)
Parameters
messagestringThe message to write.
fdint'1' for stdout, '2' for stderr.
featuresIFeatureCollectionThe dispatch features.
cancellationTokenCancellationTokenA cancellation token that receives the cancellation requests.
Returns
- ValueTask
A value task that completes when this implementation completes.