// $Id$ // // Copyright 2007-2008 Cisco Systems Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy // of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the // License for the specific language governing permissions and limitations // under the License. using etch.tests.types.Bar; using etch.tests.types.Baz; using etch.tests.types.Foo; using System; using etch.tests; /** * Call to message translator for FooServer. */ namespace etch.tests { public class ImplFooServer : BaseFooServer { /// /// Constructs the ImplFooServer. /// /// /// public ImplFooServer(RemoteFooClient client ) { this.client = client; _delegate_foo1 = Myfoo1; _delegate_foo2 = Myfoo2; _delegate_bar1 = Mybar1; _delegate_bar2 = Mybar2; _delegate_baz1 = Mybaz1; _delegate_baz2 = Mybaz2; } private readonly RemoteFooClient client; /// /// Begins the call to foo1. /// public bool? Myfoo1( FooData fooData ) { Console.WriteLine("foo1 called with " + fooData); return true; } /// /// Begins the call to foo2. /// public bool? Myfoo2( FooData fooData ) { Console.WriteLine("foo2 called with " + fooData); return false; } public bool? Mybaz1( BazData bazData ) { Console.WriteLine("baz1 called with " + bazData); return true; } public bool? Mybaz2( BazData bazData ) { Console.WriteLine("baz2 called with " + bazData); return false; } public bool? Mybar1( BarData barData ) { Console.WriteLine("bar1 called with " + barData); return true; } public bool? Mybar2( BarData barData ) { Console.WriteLine("bar2 called with " + barData); return false; } } }