~ubuntu-branches/ubuntu/quantal/zeroc-ice/quantal

« back to all changes in this revision

Viewing changes to cs/test/Glacier2/router/Server.cs

  • Committer: Bazaar Package Importer
  • Author(s): Cleto Martín
  • Date: 2011-06-25 19:44:26 UTC
  • mfrom: (6.1.16 sid)
  • Revision ID: james.westby@ubuntu.com-20110625194426-9fip3u3hlwheohvl
Tags: 3.4.2-1
New upstream release (Closes: #631456).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// **********************************************************************
2
2
//
3
 
// Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved.
 
3
// Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
4
4
//
5
5
// This copy of Ice is licensed to you under the terms described in the
6
6
// ICE_LICENSE file included in this distribution.
39
39
        }
40
40
    }
41
41
 
42
 
    public static void Main(string[] args)
 
42
    public static int Main(string[] args)
43
43
    {
 
44
#if !COMPACT
44
45
        Debug.Listeners.Add(new ConsoleTraceListener());
 
46
#endif
 
47
 
 
48
        Ice.InitializationData initData = new Ice.InitializationData();
 
49
        initData.properties = Ice.Util.createProperties(ref args);
 
50
 
 
51
#if COMPACT
 
52
        //
 
53
        // When using Ice for .NET Compact Framework, we need to specify
 
54
        // the assembly so that Ice can locate classes and exceptions.
 
55
        //
 
56
        initData.properties.setProperty("Ice.FactoryAssemblies", "server");
 
57
#endif
45
58
 
46
59
        App app = new App();
47
 
        int status = app.main(args);
48
 
        if(status != 0)
49
 
        {
50
 
            Environment.Exit(status);
51
 
        }
 
60
        return app.main(args, initData);
52
61
    }
53
62
}