Class RpcEndpointBase
Base class for building RPC endpoints.
public abstract class RpcEndpointBase : EndpointBase, IRpcEndpoint, IEndpoint
- Inheritance
-
RpcEndpointBase
- Implements
- Derived
- Inherited Members
Constructors
RpcEndpointBase(IEndpoint, string)
Creates a new RPC endpoint with a relative URI.
protected RpcEndpointBase(IEndpoint referrer, string relativeUri)
Parameters
RpcEndpointBase(IEndpoint, Uri)
Base class for building RPC endpoints.
protected RpcEndpointBase(IEndpoint referrer, Uri relativeUri)
Parameters
referrerIEndpointThe endpoint used to navigate to this one.
relativeUriUriThe URI of this endpoint relative to the
referrer's. Add a./prefix here to imply a trailing slashreferrer's URI.
Properties
InvokeAllowed
Indicates whether the server has specified the invoke method is currently allowed.
public bool? InvokeAllowed { get; }
Property Value
- bool?
trueif the method is allowed,falseif the method is not allowed,nullIf no request has been sent yet or the server did not specify allowed methods.
Remarks
Uses cached data from last response.
Methods
ProbeAsync(CancellationToken)
Queries the server about capabilities of the endpoint without performing any action.
public Task ProbeAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenUsed to cancel the request.
Returns
Exceptions
- AuthenticationException
- UnauthorizedAccessException
- KeyNotFoundException
- HttpRequestException
Other non-success status code.