/// <summary> /// This resumes all conversations. /// </summary> /// <exception cref="InvalidOperationException"> /// This is thrown when the server is not registered. /// </exception> /// <exception cref="DdeException"> /// This is thrown when the conversations could not be resumed. /// </exception> public virtual void Resume() { ThreadStart method = delegate { DdemlObject.Resume(); }; try { Context.Invoke(method); } catch (DdemlException e) { throw new DdeException(e); } catch (ObjectDisposedException e) { throw new ObjectDisposedException(GetType().ToString(), e); } }
/// <overloads> /// <summary> /// </summary> /// </overloads> /// <summary> /// This resumes the specified conversation. /// </summary> /// <param name="conversation"> /// The conversation to resume. /// </param> /// <exception cref="ArgumentNullException"> /// This is thrown when conversation is a null reference. /// </exception> /// <exception cref="InvalidOperationException"> /// This is thrown when the conversation is not paused or when the server is not registered. /// </exception> /// <exception cref="DdeException"> /// This is thrown when the conversation could not be resumed. /// </exception> public virtual void Resume(DdeConversation conversation) { ThreadStart method = delegate() { DdemlObject.Resume(conversation.DdemlObject); }; try { Context.Invoke(method); } catch (DdemlException e) { throw new DdeException(e); } catch (ArgumentException e) { throw e; } catch (ObjectDisposedException e) { throw new ObjectDisposedException(this.GetType().ToString(), e); } }