/// <summary>IoC constructor.</summary> public Runtime(RuntimeProviders runtimeProviders, ICloudConfigurationSettings settings, ICloudRuntimeObserver observer = null) { _runtimeProviders = runtimeProviders; _runtimeFinalizer = runtimeProviders.RuntimeFinalizer; _log = runtimeProviders.Log; _observer = observer; _settings = settings; }
/// <summary>IoC constructor.</summary> public Runtime(CloudStorageProviders storage, IEnvironment environment, CloudConfigurationSettings settings, ILog log, ICloudRuntimeObserver observer = null) { _storage = storage; _environment = environment; _log = log; _observer = observer; _settings = settings; }
/// <summary>IoC constructor.</summary> public Runtime(CloudStorageProviders storage, IEnvironment environment, CloudConfigurationSettings settings, ILog log, ICloudRuntimeObserver observer = null) { _storage = storage; _environment = environment; _log = log; _observer = observer; _settings = settings; }
/// <summary> /// Creates a new instance of the Scheduler class. /// </summary> /// <param name="services">cloud services</param> /// <param name="schedule">Action to be invoked when a service is scheduled to run</param> public Scheduler(List <CloudService> services, Func <CloudService, ServiceExecutionFeedback> schedule, ICloudRuntimeObserver observer = null) { _observer = observer; _services = services; _schedule = schedule; }