public static IMediator WithDefaults() { var services = new ServiceCollection(); Dependencies.Configure(services, ConfigurationFactory.Create()); return(services.BuildServiceProvider().GetRequiredService <IMediator>()); }
public static void Main(string[] args) { Dependencies.Configure(); Dependencies.BuildContainer(); BuildWebHost(args).Run(); }