コード例 #1
0
        /// <summary>
        /// Inserts a new snapshot
        /// </summary>
        /// <param name="snapshot">Snapshot instance</param>
        public void InsertSnapshot(SnapshotDetail snapshot)
        {
            CreateSnapshotContainer();

            var blob = GetContainer().GetBlockBlobReference(snapshot.AggregateRootId.ToString().ToLower());

            var blobText = JsonConvert.SerializeObject(snapshot, SerializerSettings);

            blob.UploadText(blobText);
        }
コード例 #2
0
        /// <summary>
        /// Inserts a new snapshot
        /// </summary>
        /// <param name="snapshot">Snapshot instance</param>
        public void InsertSnapshot(SnapshotDetail snapshot)
        {
            CreateSnapshotContainer();

            var blob = GetContainer().GetBlockBlobReference(snapshot.AggregateRootId.ToString().ToLower());

            var blobText = JsonConvert.SerializeObject(snapshot, SerializerSettings);

            blob.UploadText(blobText);
        }