Пример #1
0
        private void HandlePopulatedCloseCaseEvent(EventCase model)
        {
            var selectCaseEvent = _eventTypeConfiguration.PopulatedCloseCaseEvent.FirstOrDefault(_ =>
                                                                                                 string.Equals(_.Type, model.Classification.Type, StringComparison.OrdinalIgnoreCase));

            if (selectCaseEvent == null)
            {
                return;
            }

            _gateway.ChangeAuthenticationHeader(selectCaseEvent.AuthToken);
            _gateway.PostAsync(selectCaseEvent.Endpoint, model);
        }
Пример #2
0
    void ApplyCase(Event ev, EventCase cs)
    {
        foreach (var resChange in cs.Resources)
        {
            UpdateResource(resChange.Resource, resChange.Value);
        }
        foreach (var regChange in cs.Regions)
        {
            UpdateRegion(regChange.Name, regChange.UpDown);
        }
        var csIndex = ev.Cases.IndexOf(cs);

        DoneEvents.Add(new EventHistory(ev, csIndex));
    }
Пример #3
0
 public User_Case(Event ev, EventCase cs)
 {
     Event = ev;
     Case  = cs;
 }