Skip to content

Commit b4667b6

Browse files
authored
Merge pull request #291 from EventStore/w1am/dev-306-net-client-breaking-changes-in-2320
Disable throwing compiler errors for obsolete code
2 parents ad51ce6 + 6e8038b commit b4667b6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/EventStore.Client.PersistentSubscriptions/EventStorePersistentSubscriptionsClient.Read.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ partial class EventStorePersistentSubscriptionsClient {
1111
/// <exception cref="ArgumentNullException"></exception>
1212
/// <exception cref="ArgumentException"></exception>
1313
/// <exception cref="ArgumentOutOfRangeException"></exception>
14-
[Obsolete("SubscribeAsync is no longer supported. Use SubscribeToStream with manual acks instead.", true)]
14+
[Obsolete("SubscribeAsync is no longer supported. Use SubscribeToStream with manual acks instead.", false)]
1515
public async Task<PersistentSubscription> SubscribeAsync(string streamName, string groupName,
1616
Func<PersistentSubscription, ResolvedEvent, int?, CancellationToken, Task> eventAppeared,
1717
Action<PersistentSubscription, SubscriptionDroppedReason, Exception?>? subscriptionDropped = null,
@@ -32,7 +32,7 @@ public async Task<PersistentSubscription> SubscribeAsync(string streamName, stri
3232
/// <exception cref="ArgumentNullException"></exception>
3333
/// <exception cref="ArgumentException"></exception>
3434
/// <exception cref="ArgumentOutOfRangeException"></exception>
35-
[Obsolete("SubscribeToStreamAsync is no longer supported. Use SubscribeToStream with manual acks instead.", true)]
35+
[Obsolete("SubscribeToStreamAsync is no longer supported. Use SubscribeToStream with manual acks instead.", false)]
3636
public async Task<PersistentSubscription> SubscribeToStreamAsync(string streamName, string groupName,
3737
Func<PersistentSubscription, ResolvedEvent, int?, CancellationToken, Task> eventAppeared,
3838
Action<PersistentSubscription, SubscriptionDroppedReason, Exception?>? subscriptionDropped = null,
@@ -102,7 +102,7 @@ public PersistentSubscriptionResult SubscribeToStream(string streamName, string
102102
/// <summary>
103103
/// Subscribes to a persistent subscription to $all. Messages must be manually acknowledged
104104
/// </summary>
105-
[Obsolete("SubscribeToAllAsync is no longer supported. Use SubscribeToAll with manual acks instead.", true)]
105+
[Obsolete("SubscribeToAllAsync is no longer supported. Use SubscribeToAll with manual acks instead.", false)]
106106
public async Task<PersistentSubscription> SubscribeToAllAsync(string groupName,
107107
Func<PersistentSubscription, ResolvedEvent, int?, CancellationToken, Task> eventAppeared,
108108
Action<PersistentSubscription, SubscriptionDroppedReason, Exception?>? subscriptionDropped = null,

src/EventStore.Client.Streams/EventStoreClient.Subscriptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public partial class EventStoreClient {
1616
/// <param name="userCredentials">The optional user credentials to perform operation with.</param>
1717
/// <param name="cancellationToken">The optional <see cref="System.Threading.CancellationToken"/>.</param>
1818
/// <returns></returns>
19-
[Obsolete("SubscribeToAllAsync is no longer supported. Use SubscribeToAll instead.", true)]
19+
[Obsolete("SubscribeToAllAsync is no longer supported. Use SubscribeToAll instead.", false)]
2020
public Task<StreamSubscription> SubscribeToAllAsync(
2121
FromAll start,
2222
Func<StreamSubscription, ResolvedEvent, CancellationToken, Task> eventAppeared,
@@ -68,7 +68,7 @@ public StreamSubscriptionResult SubscribeToAll(
6868
/// <param name="userCredentials">The optional user credentials to perform operation with.</param>
6969
/// <param name="cancellationToken">The optional <see cref="System.Threading.CancellationToken"/>.</param>
7070
/// <returns></returns>
71-
[Obsolete("SubscribeToStreamAsync is no longer supported. Use SubscribeToStream instead.", true)]
71+
[Obsolete("SubscribeToStreamAsync is no longer supported. Use SubscribeToStream instead.", false)]
7272
public Task<StreamSubscription> SubscribeToStreamAsync(string streamName,
7373
FromStream start,
7474
Func<StreamSubscription, ResolvedEvent, CancellationToken, Task> eventAppeared,

0 commit comments

Comments
 (0)