Configure TimeSpans For ServerTimeout And KeepAliveInterval
This commit is contained in:
parent
72d9b99c4c
commit
1b30636937
@ -54,7 +54,10 @@ namespace QtCNETAPI.Services.GatewayService
|
|||||||
await _apiService.RefreshSessionIfInvalid();
|
await _apiService.RefreshSessionIfInvalid();
|
||||||
return _apiService.SessionToken;
|
return _apiService.SessionToken;
|
||||||
};
|
};
|
||||||
});
|
})
|
||||||
|
.WithStatefulReconnect()
|
||||||
|
.WithServerTimeout(TimeSpan.FromMinutes(1))
|
||||||
|
.WithKeepAliveInterval(TimeSpan.FromMinutes(1));
|
||||||
HubConnection = gwConBuilder.Build();
|
HubConnection = gwConBuilder.Build();
|
||||||
|
|
||||||
// register events
|
// register events
|
||||||
|
Loading…
x
Reference in New Issue
Block a user