Пример #1
0
        public IOutputCreatedProcessState CreateProcess(OutputRequestDetails details,
                                                        IEnumerable <OutputCriteria> criterias,
                                                        String?boxNumber)
        {
            OutputRequest request = this.CreateRequest(details, criterias, boxNumber);

            return(new OutputCreatedProcessState(this, request));
        }
Пример #2
0
        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)));
        }
Пример #3
0
        private OutputMessageDetails CreateDetails(OutputMessageStatus status)
        {
            OutputRequestDetails requestDetails = this.Request.Details;

            OutputMessageDetails messageDetails = new OutputMessageDetails(requestDetails.OutputDestination,
                                                                           status,
                                                                           requestDetails.Priority,
                                                                           requestDetails.OutputPoint);

            return(messageDetails);
        }
Пример #4
0
        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));
        }
Пример #5
0
 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);
     }));
 }