Class ActionEndpoint
RPC endpoint that is invoked with no input or output.
public class ActionEndpoint : RpcEndpointBase, IActionEndpoint, IRpcEndpoint, IEndpoint
- Inheritance
-
ActionEndpoint
- Implements
- Inherited Members
Constructors
ActionEndpoint(IEndpoint, string)
Creates a new action endpoint.
public ActionEndpoint(IEndpoint referrer, string relativeUri)
Parameters
referrer
IEndpointThe endpoint used to navigate to this one.
relativeUri
stringThe URI of this endpoint relative to the
referrer
's. Add a./
prefix here to imply a trailing slashreferrer
's URI.
ActionEndpoint(IEndpoint, Uri)
Creates a new action endpoint.
public ActionEndpoint(IEndpoint referrer, Uri relativeUri)
Parameters
referrer
IEndpointThe endpoint used to navigate to this one.
relativeUri
UriThe URI of this endpoint relative to the
referrer
's.
Methods
InvokeAsync(CancellationToken)
Invokes the action.
public Task InvokeAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenUsed to cancel the request.
Returns
Exceptions
- AuthenticationException
- UnauthorizedAccessException
- KeyNotFoundException
- HttpRequestException
Other non-success status code.