private void InitBlock(Message enclosingInstance) { this.enclosingInstance = enclosingInstance; }
/* package */ internal Timeout(Message enclosingInstance, int interval, Message msg) : base() { InitBlock(enclosingInstance); timeToWait = interval; message = msg; return ; }
/// <summary> Constructs a InterThreadException with its associated message. /// /// </summary> /// <param name="message"> The text providign additional error information. /// /// </param> /// <param name="resultCode"> The error result code. /// /// </param> /// <param name="request"> The Message class associated with this exception. /// </param> /* package */ internal InterThreadException(System.String message, System.Object[] arguments, int resultCode, System.Exception rootException, Message request):base(message, arguments, resultCode, (System.String) null, rootException) { this.request = request; return ; }
/// <summary> Send a request to the server. A Message class is created /// for the specified request which causes the message to be sent. /// The request is added to the list of messages being managed by /// this agent. /// /// </summary> /// <param name="conn">the connection that identifies the server. /// /// </param> /// <param name="msg">the LdapMessage to send /// /// </param> /// <param name="timeOut">the interval to wait for the message to complete or /// <code>null</code> if infinite. /// </param> /// <param name="queue">the LdapMessageQueue associated with this request. /// </param> /* package */ internal void sendMessage(Connection conn, LdapMessage msg, int timeOut, LdapMessageQueue queue, BindProperties bindProps) { // creating a messageInfo causes the message to be sent // and a timer to be started if needed. Message message = new Message(msg, timeOut, conn, this, queue, bindProps); messages.Add(message); message.sendMessage(); // Now send message to server return ; }
/// <summary> /// Constructs a InterThreadException with its associated message. /// </summary> /// <param name="message"> /// The text providign additional error information. /// </param> /// <param name="resultCode"> /// The error result code. /// </param> /// <param name="request"> /// The Message class associated with this exception. /// </param> internal InterThreadException(string message, object[] arguments, int resultCode, Exception rootException, Message request) : base(message, arguments, resultCode, null, rootException) { this.request = request; }