public Task Handle(ProvisionDownloadRequest message, IMessageHandlerContext context)
    {
        var products = string.Join(", ", message.ProductIds);

        log.Info($"Provision the products and make the Urls available to the Content management for download ...[{products}] product(s) to provision");

        var response = new ProvisionDownloadResponse
        {
            OrderNumber = message.OrderNumber,
            ProductIds  = message.ProductIds,
            ClientId    = message.ClientId
        };

        return(context.Reply(response));
    }
예제 #2
0
    public void Handle(ProvisionDownloadRequest message)
    {
        if (DebugFlagMutator.Debug)
        {
            Debugger.Break();
        }

        var products = string.Join(", ", message.ProductIds);

        log.Info($"Provision the products and make the Urls available to the Content management for download ...[{products}] product(s) to provision");

        var response = new ProvisionDownloadResponse
        {
            OrderNumber = message.OrderNumber,
            ProductIds  = message.ProductIds,
            ClientId    = message.ClientId
        };

        bus.Reply(response);
    }
예제 #3
0
    public Task Handle(ProvisionDownloadRequest message, IMessageHandlerContext context)
    {
        if (DebugFlagMutator.Debug)
        {
            Debugger.Break();
        }

        var products = string.Join(", ", message.ProductIds);

        var logger = context.GetOrderWorkflowLogger(message);

        logger.Information("Provision the products and make the Urls available to the Content management for download ...{products} product(s) to provision", message.ProductIds);

        var response = new ProvisionDownloadResponse
        {
            OrderNumber = message.OrderNumber,
            ProductIds  = message.ProductIds,
            ClientId    = message.ClientId
        };

        return(context.Reply(response));
    }