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