Table of Contents

Class CreateProjectEndpoint

Namespace
Ando.Server.Endpoints.Projects
Assembly
Ando.Server.dll

POST /api/projects - Create a new project.

public class CreateProjectEndpoint : Endpoint<CreateProjectRequest, CreateProjectResponse>, IEndpoint, IEventBus, IServiceResolverBase
Inheritance
BaseEndpoint
CreateProjectEndpoint
Implements
IEndpoint
IEventBus
IServiceResolverBase
Inherited Members
Endpoint<CreateProjectRequest, CreateProjectResponse>.TryResolve<TService>()
Endpoint<CreateProjectRequest, CreateProjectResponse>.Resolve<TService>()
Endpoint<CreateProjectRequest, CreateProjectResponse>.CreateScope()
Endpoint<CreateProjectRequest, CreateProjectResponse>.ProcessorState<TState>()
Endpoint<CreateProjectRequest, CreateProjectResponse>.OnBeforeValidate(CreateProjectRequest)
Endpoint<CreateProjectRequest, CreateProjectResponse>.OnAfterValidate(CreateProjectRequest)
Endpoint<CreateProjectRequest, CreateProjectResponse>.OnBeforeHandle(CreateProjectRequest)
Endpoint<CreateProjectRequest, CreateProjectResponse>.OnAfterHandle(CreateProjectRequest, CreateProjectResponse)
Endpoint<CreateProjectRequest, CreateProjectResponse>.OnValidationFailed()
Endpoint<CreateProjectRequest, CreateProjectResponse>.AllowAnonymous(params Http[])
Endpoint<CreateProjectRequest, CreateProjectResponse>.DontAutoSendResponse()
Endpoint<CreateProjectRequest, CreateProjectResponse>.DontAutoTag()
Endpoint<CreateProjectRequest, CreateProjectResponse>.DontCatchExceptions()
Endpoint<CreateProjectRequest, CreateProjectResponse>.DontThrowIfValidationFails()
Endpoint<CreateProjectRequest, CreateProjectResponse>.EnableAntiforgery()
Endpoint<CreateProjectRequest, CreateProjectResponse>.Group<TEndpointGroup>()
Endpoint<CreateProjectRequest, CreateProjectResponse>.PostProcessor<TPostProcessor>()
Endpoint<CreateProjectRequest, CreateProjectResponse>.PostProcessors(params IPostProcessor<CreateProjectRequest, CreateProjectResponse>[])
Endpoint<CreateProjectRequest, CreateProjectResponse>.PreProcessor<TPreProcessor>()
Endpoint<CreateProjectRequest, CreateProjectResponse>.PreProcessors(params IPreProcessor<CreateProjectRequest>[])
Endpoint<CreateProjectRequest, CreateProjectResponse>.RequestBinder(IRequestBinder<CreateProjectRequest>)
Endpoint<CreateProjectRequest, CreateProjectResponse>.ResponseInterceptor(IResponseInterceptor)
Endpoint<CreateProjectRequest, CreateProjectResponse>.SerializerContext<TContext>(TContext)
Endpoint<CreateProjectRequest, CreateProjectResponse>.SerializerContext<TContext>()
Endpoint<CreateProjectRequest, CreateProjectResponse>.Summary(EndpointSummary)
Endpoint<CreateProjectRequest, CreateProjectResponse>.Validator<TValidator>()
Endpoint<CreateProjectRequest, CreateProjectResponse>.Verbs(params Http[])
Endpoint<CreateProjectRequest, CreateProjectResponse>.AddError(ValidationFailure)
Endpoint<CreateProjectRequest, CreateProjectResponse>.User
Endpoint<CreateProjectRequest, CreateProjectResponse>.Response
Endpoint<CreateProjectRequest, CreateProjectResponse>.Config
Endpoint<CreateProjectRequest, CreateProjectResponse>.Env
Endpoint<CreateProjectRequest, CreateProjectResponse>.Logger
Endpoint<CreateProjectRequest, CreateProjectResponse>.BaseURL
Endpoint<CreateProjectRequest, CreateProjectResponse>.HttpMethod
Endpoint<CreateProjectRequest, CreateProjectResponse>.Form
Endpoint<CreateProjectRequest, CreateProjectResponse>.Files
Endpoint<CreateProjectRequest, CreateProjectResponse>.ResponseStarted
Endpoint<CreateProjectRequest, CreateProjectResponse>.ValidationFailed
BaseEndpoint.Group<TEndpointGroup>()
BaseEndpoint.Definition
BaseEndpoint.HttpContext
BaseEndpoint.ValidationFailures

Constructors

CreateProjectEndpoint(IProjectService, IGitHubService, IOptions<GitHubSettings>)

public CreateProjectEndpoint(IProjectService projectService, IGitHubService gitHubService, IOptions<GitHubSettings> gitHubSettings)

Parameters

projectService IProjectService
gitHubService IGitHubService
gitHubSettings IOptions<GitHubSettings>

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(CreateProjectRequest, CancellationToken)

the handler method for the endpoint. this method is called for each request received.

public override Task HandleAsync(CreateProjectRequest req, CancellationToken ct)

Parameters

req CreateProjectRequest

the request dto

ct CancellationToken

a cancellation token

Returns

Task