AspectSharp.LoggingExample.Application.InterfaceInvocation C# (CSharp) 메소드

InterfaceInvocation() 개인적인 정적인 메소드

Shows interception of an interface method.
private static InterfaceInvocation ( ) : void
리턴 void
		private static void InterfaceInvocation()
		{
			Console.WriteLine("InterfaceInvocation");

			//Wraping the class which is compatible with the inteface.
			IAgatKiller agatKiller = _engine.WrapInterface(typeof(IAgatKiller), new Ronin()) as IAgatKiller;

			agatKiller.KillAgat("Demon's Castle", "Bleed Sword");
		}