Class GetProjectEndpoint
GET /api/projects/{id} - Get project details.
public class GetProjectEndpoint : EndpointWithoutRequest<GetProjectResponse>, IEndpoint, IEventBus, IServiceResolverBase, INoRequest
- Inheritance
-
BaseEndpointEndpointWithoutRequest<GetProjectResponse>GetProjectEndpoint
- Implements
-
IEndpointIEventBusIServiceResolverBaseINoRequest
- Inherited Members
-
Endpoint<EmptyRequest, GetProjectResponse>.TryResolve<TService>()Endpoint<EmptyRequest, GetProjectResponse>.Resolve<TService>()Endpoint<EmptyRequest, GetProjectResponse>.CreateScope()Endpoint<EmptyRequest, GetProjectResponse>.ProcessorState<TState>()Endpoint<EmptyRequest, GetProjectResponse>.OnBeforeValidate(EmptyRequest)Endpoint<EmptyRequest, GetProjectResponse>.OnAfterValidate(EmptyRequest)Endpoint<EmptyRequest, GetProjectResponse>.OnBeforeHandle(EmptyRequest)Endpoint<EmptyRequest, GetProjectResponse>.OnAfterHandle(EmptyRequest, GetProjectResponse)Endpoint<EmptyRequest, GetProjectResponse>.OnValidationFailed()Endpoint<EmptyRequest, GetProjectResponse>.AllowAnonymous(params Http[])Endpoint<EmptyRequest, GetProjectResponse>.DontAutoSendResponse()Endpoint<EmptyRequest, GetProjectResponse>.DontAutoTag()Endpoint<EmptyRequest, GetProjectResponse>.DontCatchExceptions()Endpoint<EmptyRequest, GetProjectResponse>.DontThrowIfValidationFails()Endpoint<EmptyRequest, GetProjectResponse>.EnableAntiforgery()Endpoint<EmptyRequest, GetProjectResponse>.Group<TEndpointGroup>()Endpoint<EmptyRequest, GetProjectResponse>.PostProcessor<TPostProcessor>()Endpoint<EmptyRequest, GetProjectResponse>.PostProcessors(params IPostProcessor<EmptyRequest, GetProjectResponse>[])Endpoint<EmptyRequest, GetProjectResponse>.PreProcessor<TPreProcessor>()Endpoint<EmptyRequest, GetProjectResponse>.PreProcessors(params IPreProcessor<EmptyRequest>[])Endpoint<EmptyRequest, GetProjectResponse>.RequestBinder(IRequestBinder<EmptyRequest>)Endpoint<EmptyRequest, GetProjectResponse>.ResponseInterceptor(IResponseInterceptor)Endpoint<EmptyRequest, GetProjectResponse>.SerializerContext<TContext>(TContext)Endpoint<EmptyRequest, GetProjectResponse>.SerializerContext<TContext>()Endpoint<EmptyRequest, GetProjectResponse>.Summary(EndpointSummary)Endpoint<EmptyRequest, GetProjectResponse>.Validator<TValidator>()Endpoint<EmptyRequest, GetProjectResponse>.Verbs(params Http[])Endpoint<EmptyRequest, GetProjectResponse>.AddError(ValidationFailure)Endpoint<EmptyRequest, GetProjectResponse>.UserEndpoint<EmptyRequest, GetProjectResponse>.ResponseEndpoint<EmptyRequest, GetProjectResponse>.ConfigEndpoint<EmptyRequest, GetProjectResponse>.EnvEndpoint<EmptyRequest, GetProjectResponse>.LoggerEndpoint<EmptyRequest, GetProjectResponse>.BaseURLEndpoint<EmptyRequest, GetProjectResponse>.HttpMethodEndpoint<EmptyRequest, GetProjectResponse>.FormEndpoint<EmptyRequest, GetProjectResponse>.FilesEndpoint<EmptyRequest, GetProjectResponse>.ResponseStartedEndpoint<EmptyRequest, GetProjectResponse>.ValidationFailedBaseEndpoint.Group<TEndpointGroup>()BaseEndpoint.DefinitionBaseEndpoint.HttpContextBaseEndpoint.ValidationFailures
Constructors
GetProjectEndpoint(AndoDbContext, IProjectService, IBuildService)
public GetProjectEndpoint(AndoDbContext db, IProjectService projectService, IBuildService buildService)
Parameters
dbAndoDbContextprojectServiceIProjectServicebuildServiceIBuildService
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(CancellationToken)
the handler method for the endpoint. this method is called for each request received.
public override Task HandleAsync(CancellationToken ct)
Parameters
ctCancellationTokena cancellation token