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); }
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)); }
public User_Case(Event ev, EventCase cs) { Event = ev; Case = cs; }