Table of Contents

Interface IIceObject

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.

public interface IIceObject

Remarks

The Slice compiler generated this client-side interface from Slice interface Ice::Object. It's implemented by IceObjectProxy.

Methods

IceIdsAsync(IFeatureCollection?, CancellationToken)

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

Task<string[]> IceIdsAsync(IFeatureCollection? features = null, CancellationToken cancellationToken = default)

Parameters

features IFeatureCollection

The invocation features.

cancellationToken CancellationToken

A cancellation token that receives the cancellation requests.

Returns

Task<string[]>

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

IceIsAAsync(string, IFeatureCollection?, CancellationToken)

Tests whether the target service implements the specified interface.

Task<bool> IceIsAAsync(string id, IFeatureCollection? features = null, CancellationToken cancellationToken = default)

Parameters

id string

The Slice type ID of the interface to test against.

features IFeatureCollection

The invocation features.

cancellationToken CancellationToken

A cancellation token that receives the cancellation requests.

Returns

Task<bool>

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

IcePingAsync(IFeatureCollection?, CancellationToken)

Pings the service.

Task IcePingAsync(IFeatureCollection? features = null, CancellationToken cancellationToken = default)

Parameters

features IFeatureCollection

The invocation features.

cancellationToken CancellationToken

A cancellation token that receives the cancellation requests.

Returns

Task

A task that completes when the response is received.