コード例 #1
0
 private static ILoggerFactory GetLoggerFactoryInternal(IDependencyInjectionContainer container)
 {
     if (!container.IsRegistered <ILoggerFactory>())
     {
         throw new InvalidOperationException($"Please Register the {nameof(ILoggingModule)} Module at the IOC.");
     }
     return(container.Resolve <ILoggerFactory>());
 }