/// <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; }
static void Verify <TBlob>(CloudStorageProviders providers) { // no verification that the providers actually work, this is not an integration test. Assert.NotNull(providers); Assert.NotNull(providers.BlobStorage); Assert.NotNull(providers.QueueStorage); Assert.NotNull(providers.TableStorage); Assert.IsInstanceOf(typeof(TBlob), providers.BlobStorage); }
/// <summary>Copy constructor.</summary> protected CloudStorageProviders( CloudStorageProviders copyFrom) { BlobStorage = copyFrom.BlobStorage; QueueStorage = copyFrom.QueueStorage; TableStorage = copyFrom.TableStorage; NeutralBlobStorage = copyFrom.NeutralBlobStorage; NeutralQueueStorage = copyFrom.NeutralQueueStorage; NeutralTableStorage = copyFrom.NeutralTableStorage; RawBlobStorage = copyFrom.RawBlobStorage; RuntimeFinalizer = copyFrom.RuntimeFinalizer; }
protected void InitializeDeploymentTenant(string hostedServiceName) { CurrentHostedService = hostedServiceName; var services = DiscoveryInfo.LokadCloudDeployments; HostedService = services.Single(d => d.ServiceName == hostedServiceName); Storage = CloudStorage .ForAzureAccount(HostedService.StorageAccount) .BuildStorageProviders(); }
protected QueueStorageTests(CloudStorageProviders storage) { QueueStorage = storage.QueueStorage; BlobStorage = storage.BlobStorage; }
protected TableStorageTests(CloudStorageProviders storage) { TableStorage = storage.TableStorage; }
/// <summary> /// Initializes a new instance of the <see cref="QueueStorageTests"/> class. /// </summary> /// <param name="storage"> /// The storage. /// </param> /// <remarks> /// </remarks> protected QueueStorageTests(CloudStorageProviders storage) { this.QueueStorage = storage.QueueStorage; this.BlobStorage = storage.BlobStorage; }
protected BlobStorageTests(CloudStorageProviders storage) { BlobStorage = storage.BlobStorage; }
public AppDefinitionWithLiveDataProvider(CloudStorageProviders storage) { _storage = storage; }