예제 #1
0
        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());
        }
예제 #2
0
        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();
        }