예제 #1
0
        /// <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;
        }
        public AssemblyConfigurationUpdateService(RuntimeProviders runtimeProviders)
        {
            // NOTE: we can't use the BlobStorage as provided by the base class
            // as this is not available at constructur time, but we want to reset
            // the status as soon as possible to avoid missing any changes

            _assemblyLoader = new AssemblyLoader(runtimeProviders);
            _assemblyLoader.ResetUpdateStatus();
        }
예제 #3
0
        protected void InitializeDeploymentTenant(string hostedServiceName)
        {
            CurrentHostedService = hostedServiceName;

            var services = DiscoveryInfo.LokadCloudDeployments;
            HostedService = services.Single(d => d.ServiceName == hostedServiceName);

            Providers = CloudStorage
                .ForAzureAccount(HostedService.StorageAccount)
                .BuildRuntimeProviders();
        }
 public AppDefinitionWithLiveDataProvider(RuntimeProviders runtimeProviders)
 {
     _runtimeProviders = runtimeProviders;
 }
예제 #5
0
 /// <summary>Build a new package loader.</summary>
 public AssemblyLoader(RuntimeProviders runtimeProviders)
 {
     _provider = runtimeProviders.BlobStorage;
 }
예제 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CloudConfiguration"/> class.
 /// </summary>
 public CloudConfiguration(RuntimeProviders runtimeProviders)
 {
     _blobProvider = runtimeProviders.BlobStorage;
 }
예제 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CloudServices"/> class.
 /// </summary>
 public CloudServices(RuntimeProviders runtimeProviders)
 {
     _blobProvider = runtimeProviders.BlobStorage;
 }
예제 #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CloudAssemblies"/> class.
 /// </summary>
 public CloudAssemblies(RuntimeProviders runtimeProviders)
 {
     _runtimeProviders = runtimeProviders;
 }