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 Main() { AppInitializationService.Initialize( typeof(Program).Assembly, DependenciesProvider.ProvideDependencencies); ServiceLocatorSingleton .Instance .GetService <IConsoleCommandsStartupService>() .Start(); }
public static void Initialize() { AppInitializationService.Initialize( typeof(FunctionsInitializationService).Assembly, DependenciesProvider.ProvideDependencencies); }