Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
        public FileTapeStream(string name, ITapeStreamSerializer serializer)
        {
            _file = new FileInfo(name);

            _serializer = serializer;
        }
Ejemplo n.º 4
0
        public FileTapeStream(string name, ITapeStreamSerializer serializer)
        {
            _file = new FileInfo(name);

            _serializer = serializer;
        }