Beispiel #1
0
 public TryToAddOrUpdateNoteMessage(AddOrUpdateNoteCommand.Request request, Guid correlationId, Guid tenantId, string username)
 {
     request.Username       = username;
     request.TenantUniqueId = tenantId;
     request.CorrelationId  = correlationId;
     Payload        = new { Request = request, CorrelationId = correlationId };
     TenantUniqueId = tenantId;
 }
Beispiel #2
0
            public async Task <Response> Handle(Request request)
            {
                var addOrUpdateRequest = new AddOrUpdateNoteCommand.Request();

                addOrUpdateRequest.Note          = request.Note;
                addOrUpdateRequest.CorrelationId = request.CorrelationId;
                addOrUpdateRequest.Username      = request.Username;
                _bus.Publish(new TryToAddOrUpdateNoteMessage(addOrUpdateRequest, request.CorrelationId, request.TenantUniqueId, request.Username));

                return(new Response());
            }