Add IErrorHandler to instance of class ClientBase<T> RRS feed

  • Question

  • Hello,

    I create simple class:

    public class Proxy<T> : System.ServiceModel.ClientBase<T>
      public T GetChannel()
        return base.Channel;

    And I want add IErrorHandler to instance of class Proxy. I write class:

    public class ErrorHandlerBehavior : System.ServiceModel.Description.IEndpointBehavior


    public class ErrorHandler : System.ServiceModel.Dispatcher.IErrorHandler
    But I don't know how add ErrorHandlerBehavior to instance of Proxy.
    Thursday, January 22, 2015 3:27 PM

All replies