public IMessageSink GetObjectSink(MarshalByRefObject obj, IMessageSink nextSink) { if (obj.GetType().GetCustomAttributes(typeof(ONContextAttribute), true).Length > 0) nextSink = new ONContextInterceptor(obj, nextSink, mOnContextClass); return nextSink; }
public IMessageSink GetObjectSink(MarshalByRefObject obj, IMessageSink nextSink) { if (obj.GetType().GetCustomAttributes(typeof(ONContextAttribute), true).Length > 0) { nextSink = new ONContextInterceptor(obj, nextSink, mOnContextClass); } return(nextSink); }