static void Main(string[] args) { Console.WriteLine("Press Any Key to Start"); Console.ReadLine(); // Create Client ChannelFactory <IFibonacci> channelFactory = new ChannelFactory <IFibonacci>(""); IFibonacci fibonacci = channelFactory.CreateChannel(); GenerateCSCodeForService( new EndpointAddress("http://localhost:8000/Fibonacci/mex/"), System.Environment.CurrentDirectory + "\\..\\..\\GeneratedContract.cs" ); GenerateVBCodeForService( new EndpointAddress("http://localhost:8000/Fibonacci/mex/"), System.Environment.CurrentDirectory + "\\..\\..\\GeneratedContract.vb" ); // Input Loop int input; Console.Write("Fibonacci Number: "); while (int.TryParse(Console.ReadLine(), out input)) { Console.WriteLine(fibonacci.Compute(input)); Console.Write("Fibonacci Number: "); } // Cleanup channelFactory.Close(); }
public uint Formula() => formula.Compute(n);
public uint FastDoubling() => fastDoubling.Compute(n);
public uint Quickly() => quickly.Compute(n);
public uint Recursive() => recursive.Compute(n);