public MasterApplication() { var env = new Dictionary <string, object> { { "AppId", this.HwId }, { "AppVersion", "" }, { "Region", "" }, { "Cloud", "" }, }; var options = new HttpRequestQueueOptions( CommonSettings.Default.WebRpcHttpQueueMaxErrors, CommonSettings.Default.WebRpcHttpQueueMaxTimeouts, CommonSettings.Default.WebRpcHttpQueueRequestTimeout, CommonSettings.Default.WebRpcHttpQueueQueueTimeout, CommonSettings.Default.WebRpcHttpQueueMaxBackoffTime, CommonSettings.Default.WebRpcHttpQueueReconnectInterval, CommonSettings.Default.WebRpcHttpQueueMaxQueuedRequests, CommonSettings.Default.WebRpcHttpQueueMaxConcurrentRequests); var settings = WebRpcSettings.Default; var webRpcEnabled = (settings != null && settings.Enabled); var baseUrlString = webRpcEnabled ? settings.BaseUrl.Value : string.Empty; this.webRpcManager = new WebRpcManager(webRpcEnabled, baseUrlString, env, options); }
public HiveApplication() { AppDomain.CurrentDomain.AssemblyResolve += PluginManager.OnAssemblyResolve; var env = new Dictionary <string, object> { { "AppId", this.HwId }, { "AppVersion", "" }, { "Region", "" }, { "Cloud", "" }, }; this.webRpcManager = new WebRpcManager(env); }
public GameApplication() { AppDomain.CurrentDomain.AssemblyResolve += PluginManager.OnAssemblyResolve; this.UpdateMasterEndPoint(); this.ServerId = Guid.NewGuid(); this.GamingTcpPort = GameServerSettings.Default.GamingTcpPort; this.GamingUdpPort = GameServerSettings.Default.GamingUdpPort; this.GamingWebSocketPort = GameServerSettings.Default.GamingWebSocketPort; this.GamingSecureWebSocketPort = GameServerSettings.Default.GamingSecureWebSocketPort; this.GamingHttpPort = GameServerSettings.Default.GamingHttpPort; this.GamingHttpsPort = GameServerSettings.Default.GamingHttpsPort; this.GamingHttpPath = string.IsNullOrEmpty(GameServerSettings.Default.GamingHttpPath) ? string.Empty : "/" + GameServerSettings.Default.GamingHttpPath; this.GamingWebRTCPort = GameServerSettings.Default.GamingWebRTCPort; this.ConnectRetryIntervalSeconds = GameServerSettings.Default.ConnectReytryInterval; this.reader = new NodesReader(this.ApplicationRootPath, CommonSettings.Default.NodesFileName); var env = new Dictionary <string, object> { { "AppId", this.HwId }, { "AppVersion", "" }, { "Region", "" }, { "Cloud", "" }, }; var options = new HttpRequestQueueOptions( CommonSettings.Default.WebRpcHttpQueueMaxErrors, CommonSettings.Default.WebRpcHttpQueueMaxTimeouts, CommonSettings.Default.WebRpcHttpQueueRequestTimeout, CommonSettings.Default.WebRpcHttpQueueQueueTimeout, CommonSettings.Default.WebRpcHttpQueueMaxBackoffTime, CommonSettings.Default.WebRpcHttpQueueReconnectInterval, CommonSettings.Default.WebRpcHttpQueueMaxQueuedRequests, CommonSettings.Default.WebRpcHttpQueueMaxConcurrentRequests); var settings = WebRpcSettings.Default; var webRpcEnabled = (settings != null && settings.Enabled); var baseUrlString = webRpcEnabled ? settings.BaseUrl.Value : string.Empty; this.webRpcManager = new WebRpcManager(webRpcEnabled, baseUrlString, env, options); }