[This is preliminary documentation and is subject to change.]
The CallSlot type exposes the following members.Constructors
Name | Description | |
---|---|---|
![]() | CallSlot(ClientEndPoint, ClientTransport, RequestMsg, CallStatus, Int32) |
INTERNAL METHOD. Developers do not call!
This constructor is used by an Async binding that delivers response after call slot was created
|
![]() | CallSlot(ClientEndPoint, ClientTransport, Int64, DateTime, RequestMsg, ResponseMsg, Int32) |
INTERNAL METHOD. Developers do not call!
This constructor is used by a synchronous binding that delivers response right after sending it.
ONLY for OneWayCall = false
|
Methods
Name | Description | |
---|---|---|
![]() | AsTaskReturning TCallResult |
Creates a wrapper task around CallSlot.AsTask and returns CallSlot.GetValue() as TCallResult-returning Task.
Note: the created wrapper task is not cached
|
![]() | AsTaskReturningVoid |
Creates a wrapper task around CallSlot.AsTask and returns CallSlot.CheckVoidValue()
Note: the created wrapper task is not cached
|
![]() | CheckVoidValue |
Checks for a valid void value returned from the other side, that is -
gets the response message and checks it for errors,
throwing RemoteError exception if one came from server.
Accessing this property blocks calling thread until either ResponseMsg arrives or timeout expires.
Check 'Available' property not to block. Accessing this method for [OneWay] methods throws.
|
![]() | DeliverResponse |
Called internally by framework to populate the response message when one asynchronously arrives from transport
|
![]() | Equals | (Overrides ![]() |
![]() | ![]() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from ![]() |
![]() | GetHashCode | (Overrides ![]() |
![]() | ![]() | Gets the (Inherited from ![]() ![]() |
![]() | GetValue T |
Returns a value from the other side, that is -
gets the response message and checks it for errors,
throwing RemoteError exception if one came from server.
Accessing this property blocks calling thread until either ResponseMsg arrives or timeout expires.
Check 'Available' property not to block. Accessing this method for [OneWay] methods throws.
|
![]() | ![]() | Creates a shallow copy of the current (Inherited from ![]() ![]() |
![]() | SignalDispatchError |
Signal erroneous completion of request dispatching. This method is used by transports that post outgoing message asynchronously
|
![]() | ToString | (Overrides ![]() |
Extension Methods
Fields
Name | Description | |
---|---|---|
![]() ![]() | DEFAULT_TIMEOUT_MS | |
![]() | m_TaskCompletionSource |
Properties
Name | Description | |
---|---|---|
![]() | AsTask |
Gets the CallSlot instance as a task that gets completed either instantly for one-way calls or when result arrives or timeout happens.
The returned task never gets canceled
|
![]() | Available |
Returns true when response has come and available so no blocking will occur when reading response. This is a non-blocking call.
Always returns true for operations marked as [OneWay]
|
![]() | CallContext |
General-purpose property that clients can use for attaching an arbitrary context to this instance. This property has no use in the framework
|
![]() | CallStatus |
Returns current call status. Timeout is returned when response has not arrived from the other side in alotted time. This is a non-blocking call
|
![]() | Client |
Returns client endpoint that initiated this call
|
![]() | ClientTransport |
Returns client transport that this instance is originated from
|
![]() | DispatchErrorMessage |
Optionally returns reason of the dispatch message failure
|
![]() | OneWay |
Indicates that this call does not expect a response message from the server side
|
![]() | RequestID |
Returns request ID for the request that was sent and generated this slot instance
|
![]() | ResponseMsg |
Blocks until response comes or timeout happens. Response message inspection happens in the context of a calling thread
|
![]() | StartTime |
Returns UTC timestamp of call initiation
|
![]() | StatRoundtripEndTimeTicks |
When binding's MeasureStatTimes enabled, returns the operation end (when response arrives) tick count
|
![]() | StatRoundtripTimeKey |
When binding's MeasureStatTimes enabled, returns the name of the stat key
|
![]() | StatStartTimeTicks |
When binding's MeasureStatTimes enabled, returns the operation start tick count
|
![]() | TimeoutMs |
Returns timeout for this instance
|
See Also