示例#1
0
 public async Task <PriceV1> UpdatePriceAsync(string correlationId, PriceV1 price)
 {
     using (Instrument(correlationId, "prices.update_price"))
     {
         return(await _controller.UpdatePriceAsync(correlationId, price));
     }
 }
示例#2
0
        public async Task <PriceV1> CreatePriceAsync(string correlationId, PriceV1 price)
        {
            price.Id       = price.Id ?? IdGenerator.NextLong();
            price.Priority = price.Priority ?? PriceV1.DEFAULT_PRIORITY;

            return(await _persistence.CreateAsync(correlationId, price));
        }
示例#3
0
 public async Task <PriceV1> UpdatePriceAsync(string correlationId, PriceV1 price)
 {
     return(await CallCommandAsync <PriceV1>(
                "update_price",
                correlationId,
                new
     {
         price = price
     }
                ));
 }
 public async Task <PriceV1> CreatePriceAsync(string correlationId, PriceV1 price)
 {
     return(await Task.FromResult(new PriceV1()));
 }
示例#5
0
        public async Task <PriceV1> UpdatePriceAsync(string correlationId, PriceV1 price)
        {
            price.Priority = price.Priority ?? PriceV1.DEFAULT_PRIORITY;

            return(await _persistence.UpdateAsync(correlationId, price));
        }