public void print_File_Info() { IFileReaderServiceCallback callback = new FileReaderServiceCallback(); InstanceContext context = new InstanceContext(callback); FileReaderServiceProxy.FileReaderServiceProxy proxy = new FileReaderServiceProxy.FileReaderServiceProxy(context); string filePath = Console.ReadLine(); Console.WriteLine(proxy.Echo(filePath)); Console.WriteLine(proxy.GetFileAttributes(filePath)); Console.WriteLine(proxy.PerCall_FileReader()); }
static void Main(string[] args) { IFileReaderServiceCallback callback = new FileReaderServiceCallback(); InstanceContext context = new InstanceContext(callback); FileReaderServiceProxy.FileReaderServiceProxy proxy = new FileReaderServiceProxy.FileReaderServiceProxy(context); Console.WriteLine("Client is running at " + DateTime.Now.ToString()); Console.WriteLine("Enter the filepath: "); string filePath = Console.ReadLine(); Console.WriteLine(proxy.Echo(filePath)); Console.WriteLine(proxy.GetFileAttributes(filePath)); Console.ReadLine(); }