public void Start(string orderId, IOrderGroup orderGroup)
        {
            var vippsPollingEntity = new VippsPollingEntity
            {
                // orderGroup.Created is in UTC
                Created    = orderGroup.Created,
                CartName   = orderGroup.Name,
                ContactId  = orderGroup.CustomerId,
                MarketId   = orderGroup.MarketId.Value,
                OrderId    = orderId,
                InstanceId = _vippsOrderSynchronizer.GetInstanceId()
            };

            _pollingEntityContext.PollingEntities.Add(vippsPollingEntity);
            _pollingEntityContext.SaveChangesDatabaseWins();
            _start = true;
        }
Exemplo n.º 2
0
 public void Start(VippsPollingEntity vippsPollingEntity)
 {
     _pollingEntityContext.PollingEntities.Add(vippsPollingEntity);
     _pollingEntityContext.SaveChanges();
     _start = true;
 }