Table of Contents

Class DeadlineFeature

Namespace
IceRpc.Features
Assembly
IceRpc.dll

Default implementation of IDeadlineFeature.

public sealed class DeadlineFeature : IDeadlineFeature
Inheritance
DeadlineFeature
Implements
Inherited Members

Constructors

DeadlineFeature(DateTime)

Constructs a deadline feature.

public DeadlineFeature(DateTime deadline)

Parameters

deadline DateTime

The deadline value.

Properties

Value

Gets the value of deadline.

public DateTime Value { get; }

Property Value

DateTime

The deadline value. The MaxValue means no deadline.

Methods

FromTimeout(TimeSpan)

Creates a deadline from a timeout.

public static DeadlineFeature FromTimeout(TimeSpan timeout)

Parameters

timeout TimeSpan

The timeout.

Returns

DeadlineFeature

A new deadline equal to now plus the timeout.