Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }