private static bool TheControllerNameDoesNotMatch(RouteValueDictionary values,
                                                   LoggingRouteData loggingConfiguration)
 {
     var page = GetTheCurrentPage();
     return string.Compare(page, loggingConfiguration.Page, StringComparison.CurrentCultureIgnoreCase) != 0;
 }
 private static bool TheQueryStringValuesDoNotMatch(LoggingRouteData loggingConfiguration)
 {
     return loggingConfiguration.TheQueryStringShouldBeUsed &&
            (HttpContext.Current.Request[loggingConfiguration.QueryStringKey] !=
             loggingConfiguration.QueryStringValue);
 }
 private static bool AuthenticationIsRequiredButCurrentUserIsNot(LoggingRouteData loggingConfiguration)
 {
     return loggingConfiguration.RequireAuthentication &&
            HttpContext.Current.User.Identity.IsAuthenticated == false;
 }
 public LoggingConfiguration(LoggingRouteData loggingRouteData,
     LoggerExclusionSet loggerExclusionSet)
 {
     this.loggingRouteData = loggingRouteData;
     this.loggerExclusionSet = loggerExclusionSet;
 }