static AuditActionMapper() { actions = new Dictionary <MessageAction, MessageMaps>(); actions = actions .Union(LoginActionsMapper.GetMaps()) .Union(ProjectsActionsMapper.GetMaps()) .Union(CrmActionMapper.GetMaps()) .Union(PeopleActionMapper.GetMaps()) .Union(DocumentsActionMapper.GetMaps()) .Union(SettingsActionsMapper.GetMaps()) .ToDictionary(x => x.Key, x => x.Value); }
public AuditActionMapper(IOptionsMonitor <ILog> options) { Actions = new Dictionary <MessageAction, MessageMaps>(); Log = options.CurrentValue; Actions = Actions .Union(LoginActionsMapper.GetMaps()) .Union(ProjectsActionsMapper.GetMaps()) .Union(CrmActionMapper.GetMaps()) .Union(PeopleActionMapper.GetMaps()) .Union(DocumentsActionMapper.GetMaps()) .Union(SettingsActionsMapper.GetMaps()) .Union(OthersActionsMapper.GetMaps()) .ToDictionary(x => x.Key, x => x.Value); }