Exemple #1
0
        public static BlobAppendOnlyStore CreateAppendOnlyStore(this IAzureStorageConfig config, string s)
        {
            var client = config.CreateBlobClient();
            var store  = new BlobAppendOnlyStore(client.GetContainerReference(s));

            store.InitializeWriter();
            return(store);
        }
        public void Setup()
        {
            _name = Guid.NewGuid().ToString().ToLowerInvariant();
            ;
            var cloudBlobClient = BlobClient;
            _blobContainer = cloudBlobClient.GetContainerReference(_name);

            _appendOnly = new BlobAppendOnlyStore(_blobContainer);
            _appendOnly.InitializeWriter();
        }
Exemple #3
0
        private void InitStore()
        {
            var cloudStorageAccount = ConnectionConfig.StorageAccount;
            var cloudBlobClient     = cloudStorageAccount.CreateCloudBlobClient();

            this._blobContainer = cloudBlobClient.GetContainerReference(this._name);

            this._appendOnly = new BlobAppendOnlyStore(this._blobContainer);
            this._appendOnly.InitializeWriter();
        }
Exemple #4
0
        public void Setup()
        {
            _name = Guid.NewGuid().ToString().ToLowerInvariant();
            CloudStorageAccount cloudStorageAccount = ConnectionConfig.StorageAccount;
            var cloudBlobClient = cloudStorageAccount.CreateCloudBlobClient();

            _blobContainer = cloudBlobClient.GetContainerReference(_name);

            _appendOnly = new BlobAppendOnlyStore(_blobContainer);
            _appendOnly.InitializeWriter();
        }
Exemple #5
0
        public void Setup()
        {
            _name = Guid.NewGuid().ToString().ToLowerInvariant();
            ;
            var cloudBlobClient = BlobClient;

            _blobContainer = cloudBlobClient.GetContainerReference(_name);

            _appendOnly = new BlobAppendOnlyStore(_blobContainer);
            _appendOnly.InitializeWriter();
        }
Exemple #6
0
        void CreateCacheFiles()
        {
            const string msg = "test messages";

            for (int index = 0; index < DataFileCount; index++)
            {
                for (int i = 0; i < FileMessagesCount; i++)
                {
                    _appendOnly.Append("test-key" + index, Encoding.UTF8.GetBytes(msg + i));
                }
            }
            CloudStorageAccount cloudStorageAccount = ConnectionConfig.StorageAccount;
            var blobCLient    = cloudStorageAccount.CreateCloudBlobClient();
            var blobContainer = blobCLient.GetContainerReference(_name);

            _appendOnly = new BlobAppendOnlyStore(blobContainer);
            _appendOnly.InitializeWriter();
        }
        void CreateCacheFiles()
        {
            const string msg = "test messages";
            for (int index = 0; index < DataFileCount; index++)
            {
                for (int i = 0; i < FileMessagesCount; i++)
                {
                    _appendOnly.Append("test-key" + index, Encoding.UTF8.GetBytes(msg + i));
                }
            }

            var blobContainer = BlobClient.GetContainerReference(_name);
            _appendOnly = new BlobAppendOnlyStore(blobContainer);
            _appendOnly.InitializeWriter();
        }