public Task Send(ServiceBusSendContext <T> context, IPipe <ServiceBusSendContext <T> > next)
        {
            var partitionKey = _partitionKeyFormatter.FormatPartitionKey(context);

            if (!string.IsNullOrWhiteSpace(partitionKey))
            {
                context.PartitionKey = partitionKey;
            }

            return(next.Send(context));
        }
Ejemplo n.º 2
0
        public Task Send(ServiceBusSendContext <T> context, IPipe <ServiceBusSendContext <T> > next)
        {
            var sessionId = _sessionIdFormatter.FormatSessionId(context);

            if (!string.IsNullOrWhiteSpace(sessionId))
            {
                context.SessionId = sessionId;
            }

            return(next.Send(context));
        }