Class ResilientServiceProxy<T>
- Namespace
- Nerdbank.JsonRpc.BrokeredServices
- Assembly
- Nerdbank.JsonRpc.dll
Owns a stable generated proxy that replaces backing services without replaying calls.
public sealed class ResilientServiceProxy<T> : IResilientServiceProxy, IDisposable, IAsyncDisposable where T : class
Type Parameters
TThe primary service interface.
- Inheritance
-
ResilientServiceProxy<T>
- Implements
- Inherited Members
Properties
IsAvailable
Gets a value indicating whether a backing service is currently available.
public bool IsAvailable { get; }
Property Value
Proxy
Gets the stable generated service proxy.
public T Proxy { get; }
Property Value
- T
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public ValueTask DisposeAsync()
Returns
- ValueTask
A task that represents the asynchronous dispose operation.
Events
BackingServiceChanged
Occurs after a refresh gains, loses or replaces the backing service.
public event EventHandler<ResilientServiceProxyChangedEventArgs>? BackingServiceChanged