private void RegisterHandlers()
        {
            var logManager  = WebContainerManager.Get <ILogManager>();
            var userSession = WebContainerManager.Get <IUserSession>();

            GlobalConfiguration.Configuration.MessageHandlers.Add(new BasicAuthenticationMessageHandler(logManager, WebContainerManager.Get <IBasicSecurityService>()));
            GlobalConfiguration.Configuration.MessageHandlers.Add(new TaskDataSecurityMessageHandler(logManager, userSession));
            GlobalConfiguration.Configuration.MessageHandlers.Add(new PagedTaskDataSecurityMessageHandler(logManager, userSession));
        }
 public ValidateTaskUpdateRequestAttribute()
     : this(WebContainerManager.Get <ILogManager>())
 {
 }
Пример #3
0
 public UserAuditAttribute()
     : this(WebContainerManager.Get <ILogManager>(), WebContainerManager.Get <IUserSession>())
 {
 }