public static void RegisterGlobalFilters(GlobalFilterCollection filters)
 {
     filters.AddUnitOfWorkFilter();
     filters.Add(new AnalyticsFilter());
     filters.AddDasEmployerAccountsAuthorizationFilter();
     filters.AddDasEmployerAccountsUnauthorizedAccessExceptionFilter();
 }
コード例 #2
0
 public static void RegisterGlobalFilters(GlobalFilterCollection filters)
 {
     filters.AddUnitOfWorkFilter();
     filters.Add(new ValidateFeatureFilter(() => DependencyResolver.Current.GetService <IAuthorizationService>()));
     filters.Add(new GoogleAnalyticsFilter());
     filters.Add(new ViewModelFilter(() => DependencyResolver.Current.GetService <IAuthorizationService>()));
     filters.Add(new HandleErrorFilter());
 }
コード例 #3
0
 public static void RegisterGlobalFilters(GlobalFilterCollection filters)
 {
     filters.AddAuthorizationFilter();
     filters.AddUnauthorizedAccessExceptionFilter();
     filters.AddUnitOfWorkFilter();
     filters.AddValidationFilter();
     filters.Add(new GoogleAnalyticsViewBagFilter(() => DependencyResolver.Current.GetService <GoogleAnalyticsConfiguration>()));
     filters.Add(new UrlsViewBagFilter(() => DependencyResolver.Current.GetService <IEmployerUrls>()));
 }