blob: 6a651a78097724fccdbb4c4bed1b90d6269cf710 (
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-2009 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;
}
|