You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
601 B

2 years ago
using Proxy.Proxies;
namespace Proxy
{
internal class Program
{
static void Main(string[] args)
{
Client client = new Client();
Console.WriteLine("Client: Executing the client code with a real subject:");
RealSubject realSubject = new RealSubject();
client.ClientCode(realSubject);
Console.WriteLine();
Console.WriteLine("Client: Executing the same client code with a proxy");
Proxies.Proxy proxy = new Proxies.Proxy(realSubject);
client.ClientCode(proxy);
}
}
}