コード例 #1
0
 private SnapshotOptions CreateSnapshotOptions(EventSourcingAttribute attribute)
 {
     if (attribute.SnapshotType == SnapshotType.NoSnapshot)
     {
         return(new SnapshotOptions());
     }
     else
     {
         return(new SnapshotOptions(attribute.StorageProvider, attribute.ShardingStrategy, attribute.SnapshotType));
     }
 }
コード例 #2
0
 private StorageOptions CreateStorageOptions(EventSourcingAttribute attribute)
 {
     return(new StorageOptions(attribute.StorageProvider, attribute.ShardingStrategy));
 }