Class SetSecretEndpoint
POST /api/projects/{id}/secrets - Add or update a secret.
public class SetSecretEndpoint : Endpoint<SetSecretRequest, SecretResponse>, IEndpoint, IEventBus, IServiceResolverBase
- Inheritance
-
BaseEndpointSetSecretEndpoint
- Implements
-
IEndpointIEventBusIServiceResolverBase
- Inherited Members
-
Endpoint<SetSecretRequest, SecretResponse>.TryResolve<TService>()Endpoint<SetSecretRequest, SecretResponse>.Resolve<TService>()Endpoint<SetSecretRequest, SecretResponse>.CreateScope()Endpoint<SetSecretRequest, SecretResponse>.ProcessorState<TState>()Endpoint<SetSecretRequest, SecretResponse>.OnBeforeValidate(SetSecretRequest)Endpoint<SetSecretRequest, SecretResponse>.OnAfterValidate(SetSecretRequest)Endpoint<SetSecretRequest, SecretResponse>.OnAfterValidateAsync(SetSecretRequest, CancellationToken)Endpoint<SetSecretRequest, SecretResponse>.OnBeforeHandle(SetSecretRequest)Endpoint<SetSecretRequest, SecretResponse>.OnAfterHandle(SetSecretRequest, SecretResponse)Endpoint<SetSecretRequest, SecretResponse>.OnValidationFailed()Endpoint<SetSecretRequest, SecretResponse>.AllowAnonymous(params Http[])Endpoint<SetSecretRequest, SecretResponse>.DontAutoSendResponse()Endpoint<SetSecretRequest, SecretResponse>.DontAutoTag()Endpoint<SetSecretRequest, SecretResponse>.DontCatchExceptions()Endpoint<SetSecretRequest, SecretResponse>.DontThrowIfValidationFails()Endpoint<SetSecretRequest, SecretResponse>.EnableAntiforgery()Endpoint<SetSecretRequest, SecretResponse>.Group<TEndpointGroup>()Endpoint<SetSecretRequest, SecretResponse>.Patch(string, Expression<Func<SetSecretRequest, object>>)Endpoint<SetSecretRequest, SecretResponse>.PostProcessor<TPostProcessor>()Endpoint<SetSecretRequest, SecretResponse>.PostProcessors(params IPostProcessor<SetSecretRequest, SecretResponse>[])Endpoint<SetSecretRequest, SecretResponse>.PreProcessor<TPreProcessor>()Endpoint<SetSecretRequest, SecretResponse>.PreProcessors(params IPreProcessor<SetSecretRequest>[])Endpoint<SetSecretRequest, SecretResponse>.RequestBinder(IRequestBinder<SetSecretRequest>)Endpoint<SetSecretRequest, SecretResponse>.ResponseInterceptor(IResponseInterceptor)Endpoint<SetSecretRequest, SecretResponse>.SerializerContext<TContext>(TContext)Endpoint<SetSecretRequest, SecretResponse>.SerializerContext<TContext>()Endpoint<SetSecretRequest, SecretResponse>.Summary(EndpointSummary)Endpoint<SetSecretRequest, SecretResponse>.Validator<TValidator>()Endpoint<SetSecretRequest, SecretResponse>.Verbs(params Http[])Endpoint<SetSecretRequest, SecretResponse>.AddError(ValidationFailure)Endpoint<SetSecretRequest, SecretResponse>.UserEndpoint<SetSecretRequest, SecretResponse>.ResponseEndpoint<SetSecretRequest, SecretResponse>.ConfigEndpoint<SetSecretRequest, SecretResponse>.EnvEndpoint<SetSecretRequest, SecretResponse>.LoggerEndpoint<SetSecretRequest, SecretResponse>.BaseURLEndpoint<SetSecretRequest, SecretResponse>.HttpMethodEndpoint<SetSecretRequest, SecretResponse>.FormEndpoint<SetSecretRequest, SecretResponse>.FilesEndpoint<SetSecretRequest, SecretResponse>.ResponseStartedEndpoint<SetSecretRequest, SecretResponse>.ValidationFailedBaseEndpoint.Group<TEndpointGroup>()BaseEndpoint.DefinitionBaseEndpoint.HttpContextBaseEndpoint.ValidationFailures
Constructors
SetSecretEndpoint(IProjectService)
public SetSecretEndpoint(IProjectService projectService)
Parameters
projectServiceIProjectService
Methods
Configure()
use this method to configure how the endpoint should be listening to incoming requests.
HINT: it is only called once during endpoint auto registration during app startup.
public override void Configure()
HandleAsync(SetSecretRequest, CancellationToken)
the handler method for the endpoint. this method is called for each request received.
public override Task HandleAsync(SetSecretRequest req, CancellationToken ct)
Parameters
reqSetSecretRequestthe request dto
ctCancellationTokena cancellation token