-
Notifications
You must be signed in to change notification settings - Fork 14
Timeouts
Gerardo Sista edited this page Apr 20, 2019
·
3 revisions
To set timeouts server side you must specify them when you instantiate your server provider using timespan object (in this case we set 20 minutes) :
//create your server provider
serverProvider = new ServerProvider();
serverProvider.ProviderSetting.ReceiveDataTimeout = new TimeSpan(0, 20, 0);
serverProvider.ProviderSetting.SendDataTimeout = new TimeSpan(0, 20, 0);
To set timeouts clientside you must specify them when you instantiate your client provider:
//create your clientprovider
`ClientProvider Client { get; set; } = new ClientProvider();
Client .ProviderSetting.ReceiveDataTimeout = new TimeSpan(0, 20, 0);
Client .ProviderSetting.SendDataTimeout = new TimeSpan(0, 20, 0);