RandomBlobData GetBlobDatasource(long minSize)
 {
     if (this.blobDatasource == null || this.blobDatasource.Size < minSize)
     {
         this.blobDatasource = new RandomBlobData(minSize);
     }
     return this.blobDatasource;
 }
 public ExperimentContainer(string instanceId, ExperimentRequest request, IExperimentFactory experimentFactory)
 {
     this.ExperimentRequest = request;
     this.testDataSource = new RandomBlobData(request.MinDataSize);
     InstanceId = instanceId;
     for (int i = 0; i < request.NumberOfThreads; i++)
     {
         this.experiments.Add(experimentFactory.CreateExperiment(request));
     }
 }
 public UploadBlobsExperiment(string instanceId, CloudBlobClient client, ExperimentRequest request, RandomBlobData blobDatasource)
     : base(request.ExperimentId, client, "Upload blobs", request.RequestedIterations, instanceId)
 {
     this.container = this.client.GetContainerReference(Path.GetFileNameWithoutExtension(Path.GetRandomFileName()).ToLowerInvariant());
     this.blobDatasource = blobDatasource;
 }