public InterfaceWithGenericMethodAopProxy( IInterfaceWithGenericMethod realInstance, InterceptionHandler interceptionHandler) { _realInstance = realInstance; _interceptionHandler = interceptionHandler; }
public GenericInterfaceAopProxy( IGenericInterface <T, TA> realInstance, InterceptionHandler interceptionHandler) : this() { _realInstance = realInstance; _interceptionHandler = interceptionHandler; }
public PhoneBookAopProxy( IPhoneBook realInstance, InterceptionHandler interceptionHandler) { _realInstance = realInstance; _interceptionHandler = interceptionHandler; }
public TestInterfaceAopProxy( ITestInterface realInstance, InterceptionHandler interceptionHandler) { _realInstance = realInstance; _interceptionHandler = interceptionHandler; }
internal InternalInterfaceAopProxy( IInternalInterface realInstance, InterceptionHandler interceptionHandler) { _realInstance = realInstance; _interceptionHandler = interceptionHandler; }
public AppConfigPeriodicRefreshHandlerAopProxy( IAppConfigPeriodicRefreshHandler realInstance, InterceptionHandler interceptionHandler) { _realInstance = realInstance; _interceptionHandler = interceptionHandler; }
public ContainerAopProxy( IContainer realInstance, InterceptionHandler interceptionHandler) { _realInstance = realInstance; _interceptionHandler = interceptionHandler; }
/// <summary> /// Compile IQueryPartsContainer to a QueryString /// </summary> /// <param name="container">The container containing all queryparts to compile to sql</param> /// <param name="interceptors">The collection of interceptors</param> /// <returns>The Compiled query</returns> public virtual CompiledQuery Compile(IQueryPartsContainer container, InterceptorCollection interceptors) { _compiledParts = new HashSet<IQueryPart>(); if (container.AggregatePart != null) { var interception = new InterceptionHandler(interceptors, container.AggregatePart.EntityType); interception.ExecuteBeforeCompile(container); } using (var writer = new StringWriter()) { foreach (var part in container.Parts) { CompilePart(part, writer, container); } var query = writer.ToString(); return new CompiledQuery { QueryString = query, QueryParts = container }; } }
public RefUtilsAopProxy( IRefUtils realInstance, InterceptionHandler interceptionHandler) { _realInstance = realInstance; _interceptionHandler = interceptionHandler; }
public void InterceptIncomingData(InterceptionHandler handler) { _interceptionHandler = handler; }
public IgnoredInterfaceAopProxy(IIgnoredInterface realInstance, InterceptionHandler interceptionHandler) { _realInstance = realInstance; _interceptionHandler = interceptionHandler; }
public IFrameworkInterceptionReturn Invoke(IFrameworkInterceptionInput input, InterceptionHandler handler) { Console.WriteLine("Before..."); var result = handler(input); Console.WriteLine("After..."); return(result); }
public IFrameworkInterceptionReturn Invoke(IFrameworkInterceptionInput input, InterceptionHandler handler) { Console.WriteLine("Before..."); var result = handler(input); Console.WriteLine("After..."); return result; }