public void add_ior_interceptor(IORInterceptor interceptor) { if (m_manager.RegistrationComplete) { throw new OBJECT_NOT_EXIST(701, CompletionStatus.Completed_No); } m_manager.add_ior_interceptor(interceptor); }
/// <summary> /// adds a ior interceptor to the inactive ior interceptors. Not possible any more /// after registration completed. /// </summary> internal void add_ior_interceptor(IORInterceptor interceptor) { lock (this) { if (m_interceptionRegistrationComplete) { throw new BAD_INV_ORDER(701, CompletionStatus.Completed_No); } if (interceptor.Name != null && interceptor.Name != String.Empty) { if (!m_namedIorInterceptors.Contains(interceptor.Name)) { m_namedIorInterceptors[interceptor.Name] = interceptor; } else { throw new DuplicateName(interceptor.Name); } } else { m_unnamedIorInterceptors.Add(interceptor); } } }
/// <summary> /// adds a ior interceptor to the inactive ior interceptors. Not possible any more /// after registration completed. /// </summary> internal void add_ior_interceptor(IORInterceptor interceptor) { lock(this) { if (m_interceptionRegistrationComplete) { throw new BAD_INV_ORDER(701, CompletionStatus.Completed_No); } if (interceptor.Name != null && interceptor.Name != String.Empty) { if (!m_namedIorInterceptors.Contains(interceptor.Name)) { m_namedIorInterceptors[interceptor.Name] = interceptor; } else { throw new DuplicateName(interceptor.Name); } } else { m_unnamedIorInterceptors.Add(interceptor); } } }