AspComet.MessageHandlers.ForwardingHandler.GetForwardingFailedResponse C# (CSharp) Method

GetForwardingFailedResponse() private static method

private static GetForwardingFailedResponse ( Message request, string cancellationReason ) : Message
request Message
cancellationReason string
return Message
        private static Message GetForwardingFailedResponse(Message request, string cancellationReason)
        {
            return new Message
            {
                id = request.id,
                clientId = request.clientId,
                successful = false,
                channel = request.channel,
                error = cancellationReason
            };
        }