AspectSharp.LoggingExample.Application.InterfaceInvocation C# (CSharp) Method

InterfaceInvocation() private static method

Shows interception of an interface method.
private static InterfaceInvocation ( ) : void
return 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");
		}