Class OutgoingRequest
- Namespace
- IceRpc
- Assembly
- IceRpc.dll
Represents a request frame sent by the application.
public sealed class OutgoingRequest : OutgoingFrame, IDisposable
- Inheritance
-
OutgoingRequest
- Implements
- Inherited Members
Constructors
OutgoingRequest(ServiceAddress)
Constructs an outgoing request.
public OutgoingRequest(ServiceAddress serviceAddress)
Parameters
serviceAddress
ServiceAddressThe address of the target service.
Properties
Features
Gets or sets the features of this request.
public IFeatureCollection Features { get; set; }
Property Value
- IFeatureCollection
The IFeatureCollection of this request. Defaults to Empty.
Fields
Gets or sets the fields of this request.
public IDictionary<RequestFieldKey, OutgoingFieldValue> Fields { get; set; }
Property Value
- IDictionary<RequestFieldKey, OutgoingFieldValue>
The fields of this request. Defaults to Empty.
IsOneway
Gets a value indicating whether this request is one-way or two-way.
public bool IsOneway { get; init; }
Property Value
Operation
Gets or initializes the name of the operation to call on the target service.
public string Operation { get; init; }
Property Value
- string
The name of the operation. The default is the empty string.
ServiceAddress
Gets the address of the target service.
public ServiceAddress ServiceAddress { get; }
Property Value
- ServiceAddress
The ServiceAddress of this request.
Methods
Dispose()
Disposes this outgoing request. This completes the payload and payload continuation of this request, and the response associated with this request (if already received).
public void Dispose()
ToString()
Returns a string that represents this outgoing request.
public override string ToString()
Returns
- string
A string that represents this outgoing request.