File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/Transports.Subscriptions.Abstractions Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -72,11 +72,12 @@ public void OnError(Exception error)
72
72
// pass along the error as an execution result instance
73
73
OnNext ( new ExecutionResult { Errors = new ExecutionErrors { executionError } } ) ;
74
74
75
- // Optionally we can disconnect the client by calling OnComplete() here
75
+ // Disconnect the client as no additional notification should be received from the source
76
76
//
77
77
// https://docs.microsoft.com/en-us/dotnet/standard/events/observer-design-pattern-best-practices
78
78
// > Once the provider calls the OnError or IObserver<T>.OnCompleted method, there should be
79
79
// > no further notifications, and the provider can unsubscribe its observers.
80
+ OnCompleted ( ) ;
80
81
}
81
82
82
83
public void OnNext ( ExecutionResult value )
You can’t perform that action at this time.
0 commit comments