コード例 #1
0
ファイル: CloudSetup.cs プロジェクト: perokvist/messageVault
        public static MessageWriter CreateAndInitWriter(CloudBlobContainer container)
        {
            container.CreateIfNotExists();
            var dataBlob = container.GetPageBlobReference(Constants.StreamFileName);
            var posBlob = container.GetPageBlobReference(Constants.PositionFileName);
            var pageWriter = new CloudPageWriter(dataBlob);
            var posWriter = new CloudCheckpointWriter(posBlob);
            var writer = new MessageWriter(pageWriter, posWriter);
            writer.Init();

            return writer;
        }
コード例 #2
0
ファイル: CloudSetup.cs プロジェクト: junxie6/messageVault
        public static MessageWriter CreateAndInitWriter(CloudBlobContainer container)
        {
            container.CreateIfNotExists();
            var dataBlob   = container.GetPageBlobReference(Constants.StreamFileName);
            var posBlob    = container.GetPageBlobReference(Constants.PositionFileName);
            var pageWriter = new CloudPageWriter(dataBlob);
            var posWriter  = new CloudCheckpointWriter(posBlob);
            var writer     = new MessageWriter(pageWriter, posWriter);

            writer.Init();

            return(writer);
        }