Exemple #1
0
        private static OptionsResolverOptions BuildDefaultOptions()
        {
            var options = new OptionsResolverOptions
            {
                LoggerFactory             = new NullLoggerFactory(),
                AssemblyResolvingStrategy = new DefaultAssemblyResolvingStrategy(),
            };

            return(options);
        }
Exemple #2
0
 public static OptionsResolverOptions SetLogging(this OptionsResolverOptions options, ILoggerFactory factory)
 {
     options.LoggerFactory = factory;
     return(options);
 }
Exemple #3
0
 public static ILogger <T> BuildLogger <T>(this OptionsResolverOptions options)
 {
     return(options.LoggerFactory.CreateLogger <T>());
 }
Exemple #4
0
 public static OptionsResolverOptions SetStrategy(this OptionsResolverOptions options, IAssemblyResolvingStrategy strategy)
 {
     options.AssemblyResolvingStrategy = strategy;
     return(options);
 }