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; }
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); }