本文整理汇总了C#中IConfig.GetUInt方法的典型用法代码示例。如果您正苦于以下问题:C# IConfig.GetUInt方法的具体用法?C# IConfig.GetUInt怎么用?C# IConfig.GetUInt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IConfig
的用法示例。
在下文中一共展示了IConfig.GetUInt方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetConfig
public void SetConfig (IConfigSource config, GridRegistrationService gridRegService)
{
m_configurationConfig = config.Configs["Configuration"];
if (m_configurationConfig != null)
{
m_defaultHostname = MainServer.Instance.FullHostName;
m_remotePassword = m_configurationConfig.GetString ("RemotePassword", "");
m_remotePort = m_configurationConfig.GetUInt ("RemoteLoadBalancingPort", m_defaultPort);
SetRemoteUrls (m_configurationConfig.GetString ("RemoteLoadBalancingUrls", "").Split (new[] { "," }, StringSplitOptions.RemoveEmptyEntries));
if (m_configurationConfig.GetBoolean("UseRemoteLoadBalancing", false))
{
//Set up the external handlers
IHttpServer server = gridRegService.m_registry.RequestModuleInterface<ISimulationBase> ().GetHttpServer (m_remotePort);
RemoteLoadBalancingPostHandler handler = new RemoteLoadBalancingPostHandler ("/LoadBalancing", m_remotePassword, gridRegService);
server.AddStreamHandler (handler);
}
}
}