public static void AddSharedPolicies(this AuthorizationOptions options, ILogger logger) { logger.LogInformation($"{nameof(AuthorizationPolicy)} Configuration started ..."); var policies = FindPolicies(); options.TryToAddPolicies(policies, logger); logger.LogInformation($"{nameof(AuthorizationPolicy)} Configuration completed."); }