private static void Build(ICompositeApplicationBuilder builder)
 {
     builder.AddApplication(new AppWithConfiguration());
     builder.AddApplication(new Application());
     builder.AddApplication(new Application());
     builder.AddApplication(new DerivedGenericApplication <int>());
 }
        public static ICompositeApplicationBuilder AddApplications(
            [NotNull] this ICompositeApplicationBuilder builder,
            [NotNull] IEnumerable <IVostokApplication> applications)
        {
            foreach (var application in applications)
            {
                builder.AddApplication(application);
            }

            return(builder);
        }
 public static ICompositeApplicationBuilder AddNetCore(
     [NotNull] this ICompositeApplicationBuilder builder,
     [NotNull] Action <IVostokNetCoreApplicationBuilder, IVostokHostingEnvironment> setup)
 => builder.AddApplication(new AdHocNetCoreApplication(setup));
 public static ICompositeApplicationBuilder AddAspNetCore(
     [NotNull] this ICompositeApplicationBuilder builder,
     [NotNull] Action <IVostokAspNetCoreApplicationBuilder, IVostokHostingEnvironment> setup,
     [NotNull] Func <IVostokHostingEnvironment, IServiceProvider, Task> warmup)
 => builder.AddApplication(new AdHocAspnetcoreApplication(setup, warmup));
 public static ICompositeApplicationBuilder AddAspNetCore <TStartup>(
     [NotNull] this ICompositeApplicationBuilder builder,
     [NotNull] Action <IVostokAspNetCoreApplicationBuilder, IVostokHostingEnvironment> setup)
     where TStartup : class => builder.AddApplication(new AdHocAspnetcoreApplication <TStartup>(setup, null));
 public static ICompositeApplicationBuilder UseParallelInitialization([NotNull] this ICompositeApplicationBuilder builder)
 => builder.CustomizeSettings(settings => settings.UseParallelInitialization = true);
 public static ICompositeApplicationBuilder UseSequentialExecution([NotNull] this ICompositeApplicationBuilder builder)
 => builder.CustomizeSettings(settings => settings.UseParallelExecution = false);
 public static ICompositeApplicationBuilder AddScheduled(
     [NotNull] this ICompositeApplicationBuilder builder,
     [NotNull] Action <IScheduledActionsBuilder> setup)
 => builder.AddApplication(new AdHocScheduledApplication((b, _) => setup(b)));
 public static ICompositeApplicationBuilder AddScheduled(
     [NotNull] this ICompositeApplicationBuilder builder,
     [NotNull] Action <IScheduledActionsBuilder, IVostokHostingEnvironment> setup)
 => builder.AddApplication(new AdHocScheduledApplication(setup));