예제 #1
0
        public AzureTapeStream(string name, string connectionString, string containerName, ITapeStreamSerializer serializer)
        {
            _serializer = serializer;

            CloudStorageAccount storageAccount = CloudStorageAccount.Parse(connectionString);
            blobClient = storageAccount.CreateCloudBlobClient();
            container = blobClient.GetContainerReference(containerName);
            container.CreateIfNotExist();

            _blob = container.GetBlobReference(name);
        }
예제 #2
0
        public AzureTapeStream(string name, string connectionString, string containerName, ITapeStreamSerializer serializer)
        {
            _serializer = serializer;

            CloudStorageAccount storageAccount = CloudStorageAccount.Parse(connectionString);

            blobClient = storageAccount.CreateCloudBlobClient();
            container  = blobClient.GetContainerReference(containerName);
            container.CreateIfNotExist();

            _blob = container.GetBlobReference(name);
        }
예제 #3
0
        public FileTapeStream(string name, ITapeStreamSerializer serializer)
        {
            _file = new FileInfo(name);

            _serializer = serializer;
        }
예제 #4
0
        public FileTapeStream(string name, ITapeStreamSerializer serializer)
        {
            _file = new FileInfo(name);

            _serializer = serializer;
        }