コード例 #1
0
ファイル: Runtime.cs プロジェクト: alexmg/lokad-cloud
        /// <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;
        }
コード例 #2
0
        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();
        }
コード例 #4
0
 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
ファイル: CloudServices.cs プロジェクト: kmaclean/lokad-cloud
 /// <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;
 }