예제 #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Client passing employee with Role Developer to folderproxy");
            StrEmployee       emp1         = new StrEmployee("Anurag", "Anurag123", "Developer");
            SharedFolderProxy folderProxy1 = new SharedFolderProxy(emp1);

            folderProxy1.PerformRWOperations();
            Console.WriteLine();
            Console.WriteLine("Client passing employee with Role Manager to folderproxy");
            StrEmployee       emp2         = new StrEmployee("Pranaya", "Pranaya123", "Manager");
            SharedFolderProxy folderProxy2 = new SharedFolderProxy(emp2);

            folderProxy2.PerformRWOperations();
            Console.Read();
        }
예제 #2
0
 public SharedFolderProxy(StrEmployee emp)
 {
     employee = emp;
 }