Exemplo n.º 1
0
 public InterceptorWithHandler(ICanHandleInvocations handler)
 {
     AddHandler(handler);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Add a handler for the given interface and a matching implementation
 /// that will act as the handler
 /// </summary>
 /// <typeparam name="TInterface">Interface to add for</typeparam>
 /// <typeparam name="TImplementation">Implementation that will actually handle invocations</typeparam>
 protected void AddHandler(ICanHandleInvocations invocationHandler)
 {
     _invocationHandlers.Add(invocationHandler);
 }
Exemplo n.º 3
0
 public InterceptorWithHandler(ICanHandleInvocations handler)
 {
     AddHandler(handler);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Add a handler for the given interface and a matching implementation
 /// that will act as the handler
 /// </summary>
 /// <typeparam name="TInterface">Interface to add for</typeparam>
 /// <typeparam name="TImplementation">Implementation that will actually handle invocations</typeparam>
 protected void AddHandler(ICanHandleInvocations invocationHandler)
 {
     _invocationHandlers.Add(invocationHandler);
 }