当前位置: 首页>>代码示例>>C#>>正文


C# App.main方法代码示例

本文整理汇总了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);
    }
开发者ID:bholl,项目名称:zeroc-ice,代码行数:28,代码来源:Client.cs

示例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);
 }
开发者ID:externl,项目名称:ice,代码行数:7,代码来源:Server.cs

示例3: Main

    public static int Main(string[] args)
    {
        #if !COMPACT
        Debug.Listeners.Add(new ConsoleTraceListener());
        #endif

        App app = new App();
        return app.main(args);
    }
开发者ID:bholl,项目名称:zeroc-ice,代码行数:9,代码来源:Client.cs

示例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);
    }
开发者ID:pedia,项目名称:zeroc-ice,代码行数:14,代码来源:Client.cs

示例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);
    }
开发者ID:externl,项目名称:ice,代码行数:15,代码来源:Client.cs

示例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);
    }
开发者ID:joshmoore,项目名称:ice,代码行数:16,代码来源:Server.cs

示例7: Main

 public static int Main(string[] args)
 {
     App app = new App();
     return app.main(args, "config.client");
 }
开发者ID:pedia,项目名称:zeroc-ice,代码行数:5,代码来源:Client.cs

示例8: Main

 public static int Main(string[] args)
 {
     App app = new App();
     return app.main(args);
 }
开发者ID:Radulfr,项目名称:zeroc-ice,代码行数:5,代码来源:Client.cs

示例9: Main

 public static int Main(String[] args)
 {
     var app = new App();
     var data = new Ice.InitializationData();
     return app.main(args, data);
 }
开发者ID:zhangwei5095,项目名称:zeroc-ice-demos,代码行数:6,代码来源:Client.cs

示例10: Main

 public static int Main(string[] args)
 {
     var app = new App();
     return app.main(args, "config.server");
 }
开发者ID:zhangwei5095,项目名称:zeroc-ice-demos,代码行数:5,代码来源:Server.cs

示例11: Main

 public static int Main(string[] args)
 {
     App server = new App();
     return server.main(args);
 }
开发者ID:zhangwei5095,项目名称:ice,代码行数:5,代码来源:Server.cs

示例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());
 }
开发者ID:joshmoore,项目名称:ice,代码行数:6,代码来源:Client.cs


注:本文中的App.main方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。