AspectSharp.Core.CustomProxyGenerator.CreateProxy C# (CSharp) Method

CreateProxy() public method

Generates a proxy implementing the specified interface and the mixins redirecting method invocations to the specifed interceptor.
public CreateProxy ( Type inter, object target, object mixins, Castle.Core.Interceptor.IInterceptor interceptor ) : object
inter System.Type Interface to be implemented.
target object
mixins object Array of instances (mixins) to be introducted.
interceptor Castle.Core.Interceptor.IInterceptor Instance of .
return object
		public object CreateProxy(Type inter, object target, object[] mixins, IInterceptor interceptor)
		{
			ProxyGenerationOptions options = CreateProxyGenerationOptions(mixins);
			return CreateInterfaceProxyWithTarget(inter, target, options, interceptor);
		}