public IOutputCreatedProcessState CreateProcess(OutputRequestDetails details, IEnumerable <OutputCriteria> criterias, String?boxNumber) { OutputRequest request = this.CreateRequest(details, criterias, boxNumber); return(new OutputCreatedProcessState(this, request)); }
public Task <IOutputCreatedProcessState> CreateProcessAsync(OutputRequestDetails details, IEnumerable <OutputCriteria> criterias, String?boxNumber, CancellationToken cancellationToken = default) { OutputRequest request = this.CreateRequest(details, criterias, boxNumber); return(Task.FromResult <IOutputCreatedProcessState>(new OutputCreatedProcessState(this, request))); }
private OutputMessageDetails CreateDetails(OutputMessageStatus status) { OutputRequestDetails requestDetails = this.Request.Details; OutputMessageDetails messageDetails = new OutputMessageDetails(requestDetails.OutputDestination, status, requestDetails.Priority, requestDetails.OutputPoint); return(messageDetails); }
private OutputResponse CreateResponse(OutputResponseStatus status) { OutputRequestDetails requestDetails = this.Request.Details; OutputResponseDetails responseDetails = new OutputResponseDetails(requestDetails.OutputDestination, status, requestDetails.Priority, requestDetails.OutputPoint); return(new OutputResponse(this.Request, responseDetails)); }
private OutputRequest CreateRequest(OutputRequestDetails details, IEnumerable <OutputCriteria> criterias, String?boxNumber) { return(this.CreateRequest((MessageId messageId, SubscriberId localSubscriberId, SubscriberId remoteSubscriberId) => { return new OutputRequest(messageId, localSubscriberId, remoteSubscriberId, details, criterias, boxNumber); })); }