private SnapshotOptions CreateSnapshotOptions(EventSourcingAttribute attribute)
 {
     if (attribute.SnapshotType == SnapshotType.NoSnapshot)
     {
         return(new SnapshotOptions());
     }
     else
     {
         return(new SnapshotOptions(attribute.StorageProvider, attribute.ShardingStrategy, attribute.SnapshotType));
     }
 }
 private StorageOptions CreateStorageOptions(EventSourcingAttribute attribute)
 {
     return(new StorageOptions(attribute.StorageProvider, attribute.ShardingStrategy));
 }