public static void Main() { AppInitializationService.AssureAppIsInitialized(typeof(Program).Assembly); ServiceLocatorSingleton .Instance .GetService <IConsoleCommandsStartupService>() .Start(); }
public static void Main() { AppInitializationService.Initialize( typeof(Program).Assembly, DependenciesProvider.ProvideDependencencies); ServiceLocatorSingleton .Instance .GetService <IConsoleCommandsStartupService>() .Start(); }
public static async Task RunInternalAsync(ExecutionContext context, ILogger logger) { var azureFuncContext = AppInitializationService.Initialize(context, logger); await azureFuncContext.ExecuteActionAsync( async serviceLocator => { var orchestrator = serviceLocator.GetService <IBackupOrchestrationService>(); await orchestrator.CreateBackupAsync(context.FunctionAppDirectory); }); }
public static void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) { app.UseSwagger(); app.UseSwaggerUI( c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "Container Testing API V1"); }); var config = new AppConfig(app, env, loggerFactory); AppInitializationService.InitializeApplication(config); }
public void Configure(IApplicationBuilder app, IHostingEnvironment env) { AppInitializationService.InitializeApp(app, env); }
public static void Initialize() { AppInitializationService.Initialize( typeof(FunctionsInitializationService).Assembly, DependenciesProvider.ProvideDependencencies); }
public TestDbContext() { AppInitializationService.AssureAppIsInitialized(); }