本文整理汇总了C#中Ice.getPropertiesForPrefix方法的典型用法代码示例。如果您正苦于以下问题:C# Ice.getPropertiesForPrefix方法的具体用法?C# Ice.getPropertiesForPrefix怎么用?C# Ice.getPropertiesForPrefix使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Ice
的用法示例。
在下文中一共展示了Ice.getPropertiesForPrefix方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: show
private static void show(Ice.PropertiesAdminPrx admin)
{
Dictionary<string, string> props = admin.getPropertiesForPrefix("Demo");
Console.Out.WriteLine("Server's current settings:");
foreach(KeyValuePair<string, string> e in props)
{
Console.Out.WriteLine(" " + e.Key + "=" + e.Value);
}
}
示例2: getClientProps
getClientProps(Ice.PropertiesAdminPrx p, Dictionary<string, string> orig, string m)
{
Dictionary<string, string> props = p.getPropertiesForPrefix("IceMX.Metrics");
foreach(string e in new List<string>(props.Keys))
{
props[e] = "";
}
foreach(KeyValuePair<string, string> e in orig)
{
props[e.Key] = e.Value;
}
string map = "";
if(m.Length > 0)
{
map += "Map." + m + '.';
}
props["IceMX.Metrics.View." + map + "Reject.parent"] = "Ice\\.Admin";
props["IceMX.Metrics.View." + map + "Accept.endpointPort"] = "12010";
props["IceMX.Metrics.View." + map + "Reject.identity"] = ".*/admin|controller";
return props;
}
示例3: copyProperties
private static void copyProperties(string prefix, Ice.Properties from, Ice.Properties to)
{
foreach(var p in from.getPropertiesForPrefix(prefix))
{
to.setProperty(p.Key, p.Value);
}
}
示例4: clearView
static void clearView(Ice.PropertiesAdminPrx cprops, Ice.PropertiesAdminPrx sprops, UpdateCallbackI callback)
{
Dictionary<string, string> dict;
dict = cprops.getPropertiesForPrefix("IceMX.Metrics");
dict["IceMX.Metrics.View.Disabled"] = "1";
cprops.setProperties(dict);
dict = sprops.getPropertiesForPrefix("IceMX.Metrics");
dict["IceMX.Metrics.View.Disabled"] = "1";
sprops.setProperties(dict);
callback.waitForUpdate();
dict = cprops.getPropertiesForPrefix("IceMX.Metrics");
dict["IceMX.Metrics.View.Disabled"] = "";
cprops.setProperties(dict);
dict = sprops.getPropertiesForPrefix("IceMX.Metrics");
dict["IceMX.Metrics.View.Disabled"] = "";
sprops.setProperties(dict);
callback.waitForUpdate();
}