コード例 #1
0
        public static IMediator WithDefaults()
        {
            var services = new ServiceCollection();

            Dependencies.Configure(services, ConfigurationFactory.Create());

            return(services.BuildServiceProvider().GetRequiredService <IMediator>());
        }
コード例 #2
0
 public static void Main(string[] args)
 {
     Dependencies.Configure();
     Dependencies.BuildContainer();
     BuildWebHost(args).Run();
 }