Exemplo n.º 1
0
        public static IMediator WithDefaults()
        {
            var services = new ServiceCollection();

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

            return(services.BuildServiceProvider().GetRequiredService <IMediator>());
        }
Exemplo n.º 2
0
 public static void Main(string[] args)
 {
     Dependencies.Configure();
     Dependencies.BuildContainer();
     BuildWebHost(args).Run();
 }