Class AlpacaStreamingClientExtensions
Helper extension method for creating special version of the IAlpacaStreamingClient implementation with automatic reconnection (with configurable delay and number of attempts) support.
Inheritance
System.Object
AlpacaStreamingClientExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Alpaca.Markets.Extensions
Assembly: Alpaca.Markets.Extensions.dll
Syntax
public static class AlpacaStreamingClientExtensions
Methods
| Improve this Doc View SourceWithReconnect(IAlpacaStreamingClient)
Wraps instance of IAlpacaStreamingClient into the helper class with automatic reconnection support with the default reconnection parameters.
Declaration
public static IAlpacaStreamingClient WithReconnect(this IAlpacaStreamingClient client)
Parameters
Type | Name | Description |
---|---|---|
IAlpacaStreamingClient | client | Original streaming client for wrapping. |
Returns
Type | Description |
---|---|
IAlpacaStreamingClient | Wrapped version of the |
WithReconnect(IAlpacaStreamingClient, ReconnectionParameters)
Wraps instance of IAlpacaStreamingClient into the helper class with automatic reconnection support and provide optional reconnection parameters.
Declaration
public static IAlpacaStreamingClient WithReconnect(this IAlpacaStreamingClient client, ReconnectionParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
IAlpacaStreamingClient | client | Original streaming client for wrapping. |
ReconnectionParameters | parameters | Reconnection parameters (or default if missing). |
Returns
Type | Description |
---|---|
IAlpacaStreamingClient | Wrapped version of the |