本文整理汇总了C#中App.main方法的典型用法代码示例。如果您正苦于以下问题:C# App.main方法的具体用法?C# App.main怎么用?C# App.main使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类App
的用法示例。
在下文中一共展示了App.main方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Main
public static int Main(string[] args)
{
#if !COMPACT
Debug.Listeners.Add(new ConsoleTraceListener());
#endif
//
// We must disable connection warnings, because we attempt to
// ping the router before session establishment, as well as
// after session destruction. Both will cause a
// ConnectionLostException.
//
Ice.InitializationData initData = new Ice.InitializationData();
initData.properties = Ice.Util.createProperties(ref args);
initData.properties.setProperty("Ice.Warn.Connections", "0");
#if COMPACT
//
// When using Ice for .NET Compact Framework, we need to specify
// the assembly so that Ice can locate classes and exceptions.
//
initData.properties.setProperty("Ice.FactoryAssemblies", "client");
#endif
App app = new App();
return app.main(args, initData);
}
示例2: Main
public static int Main(string[] args)
{
Ice.InitializationData initData = new Ice.InitializationData();
initData.properties = Ice.Util.createProperties(ref args);
App app = new App();
return app.main(args, initData);
}
示例3: Main
public static int Main(string[] args)
{
#if !COMPACT
Debug.Listeners.Add(new ConsoleTraceListener());
#endif
App app = new App();
return app.main(args);
}
示例4: Main
static public int Main(String[] args)
{
App app = new App();
Ice.InitializationData data = new Ice.InitializationData();
#if COMPACT
//
// When using Ice for .NET Compact Framework, we need to specify
// the assembly so that Ice can locate classes and exceptions.
//
data.properties = Ice.Util.createProperties();
data.properties.setProperty("Ice.FactoryAssemblies", "client,version=1.0.0.0");
#endif
return app.main(args, data);
}
示例5: Main
public static int Main(string[] args)
{
//
// We must disable connection warnings, because we attempt to
// ping the router before session establishment, as well as
// after session destruction. Both will cause a
// ConnectionLostException.
//
Ice.InitializationData initData = new Ice.InitializationData();
initData.properties = Ice.Util.createProperties(ref args);
initData.properties.setProperty("Ice.Warn.Connections", "0");
App app = new App();
return app.main(args, initData);
}
示例6: Main
public static int Main(string[] args)
{
Ice.InitializationData initData = new Ice.InitializationData();
initData.properties = Ice.Util.createProperties(ref args);
#if COMPACT
//
// When using Ice for .NET Compact Framework, we need to specify
// the assembly so that Ice can locate classes and exceptions.
//
initData.properties.setProperty("Ice.FactoryAssemblies", "server");
#endif
App app = new App();
return app.main(args, initData);
}
示例7: Main
public static int Main(string[] args)
{
App app = new App();
return app.main(args, "config.client");
}
示例8: Main
public static int Main(string[] args)
{
App app = new App();
return app.main(args);
}
示例9: Main
public static int Main(String[] args)
{
var app = new App();
var data = new Ice.InitializationData();
return app.main(args, data);
}
示例10: Main
public static int Main(string[] args)
{
var app = new App();
return app.main(args, "config.server");
}
示例11: Main
public static int Main(string[] args)
{
App server = new App();
return server.main(args);
}
示例12: Main
public static int Main(string[] args)
{
App app = new App(args);
app.getInitData().properties.setProperty("Ice.Warn.Connections", "0");
return app.main(args, app.getInitData());
}