File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,17 @@ public class Proxy : IDisposable {
20
20
private ClientWebSocket _Socket ;
21
21
private System . Timers . Timer _PingTimer ;
22
22
private System . Timers . Timer _PongTimer ;
23
- private readonly ConfigurationSettings _Configuration ;
24
- private readonly ILogger _Logger ;
23
+ private System . Timers . Timer _ReconnectTimer = new System . Timers . Timer ( ) ;
24
+ private ConfigurationSettings _Configuration ;
25
+ private ILogger _Logger ;
25
26
private static bool _Reconnect ;
26
27
27
- public Proxy ( IOptions < ConfigurationSettings > settings , ILoggerFactory loggerFactory ) {
28
+ private static readonly TimeSpan [ ] _ReconnectTimeouts = new TimeSpan [ ] {
29
+ TimeSpan . FromSeconds ( 10 ) , TimeSpan . FromSeconds ( 30 ) , TimeSpan . FromMinutes ( 1 ) , TimeSpan . FromMinutes ( 5 )
30
+ } ;
31
+
32
+ public Proxy ( IOptions < ConfigurationSettings > settings , ILoggerFactory loggerFactory )
33
+ {
28
34
29
35
InitializeMethodStrategies ( ) ;
30
36
You can’t perform that action at this time.
0 commit comments