/// <summary> /// Adds partitioning to the subscription using the stream name as partition key. /// Keep in mind that not all subscriptions can support partitioned consume. /// </summary> /// <param name="builder">Subscription builder</param> /// <param name="partitionsCount">Number of partitions</param> /// <returns></returns> public static SubscriptionBuilder WithPartitioningByStream( this SubscriptionBuilder builder, uint partitionsCount ) => builder.WithPartitioning(partitionsCount, ctx => ctx.Stream);