Пример #1
0
 RandomBlobData GetBlobDatasource(long minSize)
 {
     if (this.blobDatasource == null || this.blobDatasource.Size < minSize)
     {
         this.blobDatasource = new RandomBlobData(minSize);
     }
     return this.blobDatasource;
 }
Пример #2
0
 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));
     }
 }
Пример #3
0
 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;
 }