예제 #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));
 }