@@ -17,6 +17,7 @@ public abstract class ResiliencePipelineProvider<TKey>
1717 /// <param name="key">The key used to identify the resilience pipeline.</param>
1818 /// <returns>The resilience pipeline associated with the specified key.</returns>
1919 /// <exception cref="KeyNotFoundException">Thrown when no resilience pipeline is found for the specified key.</exception>
20+ /// <exception cref="ObjectDisposedException">Thrown when the provider is already disposed.</exception>
2021 public virtual ResiliencePipeline GetPipeline ( TKey key )
2122 {
2223 if ( TryGetPipeline ( key , out var pipeline ) )
@@ -35,6 +36,7 @@ public virtual ResiliencePipeline GetPipeline(TKey key)
3536 /// <param name="key">The key used to identify the resilience pipeline.</param>
3637 /// <returns>The resilience pipeline associated with the specified key.</returns>
3738 /// <exception cref="KeyNotFoundException">Thrown when no resilience pipeline is found for the specified key.</exception>
39+ /// <exception cref="ObjectDisposedException">Thrown when the provider is already disposed.</exception>
3840 public virtual ResiliencePipeline < TResult > GetPipeline < TResult > ( TKey key )
3941 {
4042 if ( TryGetPipeline < TResult > ( key , out var pipeline ) )
@@ -52,6 +54,7 @@ public virtual ResiliencePipeline<TResult> GetPipeline<TResult>(TKey key)
5254 /// <param name="key">The key used to identify the resilience pipeline.</param>
5355 /// <param name="pipeline">The output resilience pipeline if found, <see langword="null"/> otherwise.</param>
5456 /// <returns><see langword="true"/> if the pipeline was found, <see langword="false"/> otherwise.</returns>
57+ /// <exception cref="ObjectDisposedException">Thrown when the provider is already disposed.</exception>
5558 public abstract bool TryGetPipeline ( TKey key , [ NotNullWhen ( true ) ] out ResiliencePipeline ? pipeline ) ;
5659
5760 /// <summary>
@@ -61,5 +64,6 @@ public virtual ResiliencePipeline<TResult> GetPipeline<TResult>(TKey key)
6164 /// <param name="key">The key used to identify the resilience pipeline.</param>
6265 /// <param name="pipeline">The output resilience pipeline if found, <see langword="null"/> otherwise.</param>
6366 /// <returns><see langword="true"/> if the pipeline was found, <see langword="false"/> otherwise.</returns>
67+ /// <exception cref="ObjectDisposedException">Thrown when the provider is already disposed.</exception>
6468 public abstract bool TryGetPipeline < TResult > ( TKey key , [ NotNullWhen ( true ) ] out ResiliencePipeline < TResult > ? pipeline ) ;
6569}
0 commit comments