// - Actions are abstract // - Commands is a kind of Action // - Requests is a kind of Action public HTTPDestinedRequestResponse(MicroServices.ProcessingStatus status, object responseData, HTTPSourcedRequest originalAction) { ConnectionId = originalAction.ConnectionId; Action = originalAction.RequestType; User = originalAction.User; Area = originalAction.Area; Status = status.ToString(); Data = responseData; }
// - Actions are abstract // - Commands is a kind of Action // - Requests is a kind of Action public HTTPDestinedStateEvent(MicroServices.ProcessingStatus status, string message, HTTPSourcedAction originalAction) { ConnectionId = originalAction.ConnectionId; Action = originalAction.Action; User = originalAction.User; Area = originalAction.Area; Message = message; Status = status; }
// - Actions are abstract // - Commands is a kind of Action // - Requests is a kind of Action public HTTPDestinedRequestStateEvent(MicroServices.ProcessingStatus status, string message, HTTPSourcedRequest originalRequest) : base(status, message, originalRequest) { RequestType = originalRequest.RequestType; }
// - Actions are abstract // - Commands is a kind of Action // - Requests is a kind of Action public HTTPDestinedCommandStateEvent(MicroServices.ProcessingStatus status, string message, HTTPSourcedCommand originalCommand) : base(status, message, originalCommand) { Action = originalCommand.CommandType; Data = originalCommand.Data; }