summaryrefslogtreecommitdiff
path: root/cs/demo/Ice/session/HelloI.cs
blob: bf76807390fded7aa43c31cbe132f3edfddb4694 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// **********************************************************************
//
// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

using Demo;
using System;

public class HelloI : HelloDisp_
{
    public HelloI(string name, int id)
    {
        _name =  name;
        _id = id;
    }

    public override void sayHello(Ice.Current c) 
    {
        Console.Out.WriteLine("Hello object #" + _id + " for session `" + _name + "' says:\n" +
                              "Hello " + _name + "!");
    }

    private string _name;
    private int _id;
}