コード例 #1
0
        protected override ISnapshot GetSnapshot <TAggregate>(string bucketId, IIdentity id, int version)
        {
            if (SnapshotsSettings.HasOptedOut(typeof(TAggregate)))
            {
                return(null);
            }

            return(SnapshotManager.Load(id.AsString(), version, typeof(TAggregate)));
        }
コード例 #2
0
        protected override ISnapshot GetSnapshot <TAggregate>(string bucketId, IIdentity id, int version)
        {
            if (SnapshotsSettings.HasOptedOut(typeof(TAggregate)))
            {
                return(null);
            }

            return(base.GetSnapshot <TAggregate>(bucketId, id, version));
        }