Interface IRpcEndpoint
An endpoint for a non-RESTful resource that acts like a callable function.
public interface IRpcEndpoint : IEndpoint
- Inherited Members
Properties
InvokeAllowed
Indicates whether the server has specified the invoke method is currently allowed.
bool? InvokeAllowed { get; }
Property Value
- bool?
true
if the method is allowed,false
if the method is not allowed,null
If 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.
Task ProbeAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenUsed to cancel the request.
Returns
Exceptions
- AuthenticationException
- UnauthorizedAccessException
- KeyNotFoundException
- HttpRequestException
Other non-success status code.