Table of Contents

Interface IIceObjectService

Namespace
IceRpc.Slice.Ice
Assembly
IceRpc.Slice.dll

Provides 3 ice_ operations. Services implemented with Ice or that offer compatibility with Ice implement this interface.

[SliceTypeId("::Ice::Object")]
[DefaultServicePath("/Ice.Object")]
public interface IIceObjectService

Remarks

The Slice compiler generated this server-side interface from Slice interface Ice::Object. Your service implementation must implement this interface.

Methods

IceIdsAsync(IFeatureCollection, CancellationToken)

Gets the Slice type IDs of all the interfaces implemented by the target service.

ValueTask<IEnumerable<string>> IceIdsAsync(IFeatureCollection features, CancellationToken cancellationToken)

Parameters

features IFeatureCollection

The dispatch features.

cancellationToken CancellationToken

A cancellation token that receives the cancellation requests.

Returns

ValueTask<IEnumerable<string>>

The Slice type IDs of all these interfaces, sorted alphabetically.

IceIsAAsync(string, IFeatureCollection, CancellationToken)

Tests whether the target service implements the specified interface.

ValueTask<bool> IceIsAAsync(string id, IFeatureCollection features, CancellationToken cancellationToken)

Parameters

id string

The Slice type ID of the interface to test against.

features IFeatureCollection

The dispatch features.

cancellationToken CancellationToken

A cancellation token that receives the cancellation requests.

Returns

ValueTask<bool>

True when the target service implements this interface; otherwise, false.

IcePingAsync(IFeatureCollection, CancellationToken)

Pings the service.

ValueTask IcePingAsync(IFeatureCollection features, CancellationToken cancellationToken)

Parameters

features IFeatureCollection

The dispatch features.

cancellationToken CancellationToken

A cancellation token that receives the cancellation requests.

Returns

ValueTask

A value task that completes when this implementation completes.