Skip to content

Commit

Permalink
add ScatterConfigurator timeout config
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcs85 committed Feb 28, 2019
1 parent 69ec21d commit 6b64694
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ScatterSharp/ScatterSharp.Core/ScatterConfigurator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@ public class ScatterConfigurator
/// Proxy to route traffic (optional)
/// </summary>
public Proxy Proxy { get; set; }
/// <summary>
/// Default Timeout for all requests
/// </summary>
public int DefaultTimeout = 60000;
}
}
2 changes: 1 addition & 1 deletion ScatterSharp/ScatterSharp.Unity3D/Scatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public Scatter(ScatterConfigurator config, MonoBehaviour scriptInstance = null)
{
Namespace = "scatter",
Proxy = config.Proxy
}, config.AppName, 60000, scriptInstance))
}, config.AppName, config.DefaultTimeout, scriptInstance))
{
}
}
Expand Down
2 changes: 1 addition & 1 deletion ScatterSharp/ScatterSharp/Scatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public Scatter(ScatterConfigurator config) :
{
Namespace = "scatter",
Proxy = config.Proxy
}, config.AppName))
}, config.AppName, config.DefaultTimeout))
{
}
}
Expand Down

0 comments on commit 6b64694

Please sign in to comment.