コード例 #1
0
 public SedaEvent(
     string responseId,
     EventType eventType,
     BasePayLoad payLoad,
     EventName eventName     = EventName.OrchestratorInit,
     int eventIndexInFlowMap = 0)
 {
     this.ResponseId          = responseId;
     this.EventType           = eventType;
     this.PayLoad             = payLoad;
     this.EventName           = eventName;
     this.EventIndexInFlowMap = eventIndexInFlowMap;
 }
コード例 #2
0
        public async Task <IActionResult> ValidateRepository([FromBody] ValidateRepositoryRequest request)
        {
            var result = await this._responseGenerator.CreateResponseAsync(CmsOperation.GetProjects);

            BasePayLoad payLoad = new BasePayLoad();

            payLoad.Request = request;
            SedaEvent sedaEvent = new SedaEvent(result._id, SedaService.Orchestrator, SedaService.CMS, EventType.Request, CmsOperation.ValidateRepository, Priority.One, payLoad);

            await this._eventBusMessagePublisher.PublishAsync(sedaEvent);

            BaseApiResponse apiResponse = new BaseApiResponse();

            apiResponse.ResponseId = result._id;
            return(Ok(apiResponse));
        }