/// <summary> /// Causes a communication object to transition from the created state into the opened state within a specified interval of time. /// </summary> /// <param name="timeout">The <see cref="T:System.Timespan"/> that specifies how long the send operation has to complete before timing out.</param><exception cref="T:System.ServiceModel.CommunicationException">The <see cref="T:System.ServiceModel.ICommunicationObject"/> was unable to be opened and has entered the <see cref="F:System.ServiceModel.CommunicationState.Faulted"/> state.</exception><exception cref="T:System.TimeoutException">The specified timeout elapsed before the <see cref="T:System.ServiceModel.ICommunicationObject"/> was able to enter the <see cref="F:System.ServiceModel.CommunicationState.Opened"/> state and has entered the <see cref="F:System.ServiceModel.CommunicationState.Faulted"/> state.</exception> public void Open(TimeSpan timeout) { ProxiedClient.Open(timeout); }
/// <summary> /// Opens the client asynchronously. /// </summary> public void OpenAsync() { ProxiedClient.OpenAsync(); }
/// <summary> /// Ends asynchronous processing of log messages. /// </summary> /// <param name="result">The result.</param> public void EndProcessLogMessages(IAsyncResult result) { ProxiedClient.EndProcessLogMessages(result); }
/// <summary> /// Causes a communication object to transition from the created state into the opened state. /// </summary> /// <exception cref="T:System.ServiceModel.CommunicationException">The <see cref="T:System.ServiceModel.ICommunicationObject"/> was unable to be opened and has entered the <see cref="F:System.ServiceModel.CommunicationState.Faulted"/> state.</exception><exception cref="T:System.TimeoutException">The default open timeout elapsed before the <see cref="T:System.ServiceModel.ICommunicationObject"/> was able to enter the <see cref="F:System.ServiceModel.CommunicationState.Opened"/> state and has entered the <see cref="F:System.ServiceModel.CommunicationState.Faulted"/> state.</exception> public void Open() { ProxiedClient.Open(); }
/// <summary> /// Begins an asynchronous operation to open a communication object. /// </summary> /// <returns> /// The <see cref="T:System.IAsyncResult"/> that references the asynchronous open operation. /// </returns> /// <param name="callback">The <see cref="T:System.AsyncCallback"/> delegate that receives notification of the completion of the asynchronous open operation.</param><param name="state">An object, specified by the application, that contains state information associated with the asynchronous open operation.</param><exception cref="T:System.ServiceModel.CommunicationException">The <see cref="T:System.ServiceModel.ICommunicationObject"/> was unable to be opened and has entered the <see cref="F:System.ServiceModel.CommunicationState.Faulted"/> state.</exception><exception cref="T:System.TimeoutException">The default open timeout elapsed before the <see cref="T:System.ServiceModel.ICommunicationObject"/> was able to enter the <see cref="F:System.ServiceModel.CommunicationState.Opened"/> state and has entered the <see cref="F:System.ServiceModel.CommunicationState.Faulted"/> state.</exception> public IAsyncResult BeginOpen(AsyncCallback callback, object state) { return(ProxiedClient.BeginOpen(callback, state)); }
/// <summary> /// Completes an asynchronous operation to open a communication object. /// </summary> /// <param name="result">The <see cref="T:System.IAsyncResult"/> that is returned by a call to the <see cref="M:System.ServiceModel.ICommunicationObject.BeginOpen"/> method.</param><exception cref="T:System.ServiceModel.CommunicationException">The <see cref="T:System.ServiceModel.ICommunicationObject"/> was unable to be opened and has entered the <see cref="F:System.ServiceModel.CommunicationState.Faulted"/> state.</exception><exception cref="T:System.TimeoutException">The timeout elapsed before the <see cref="T:System.ServiceModel.ICommunicationObject"/> was able to enter the <see cref="F:System.ServiceModel.CommunicationState.Opened"/> state and has entered the <see cref="F:System.ServiceModel.CommunicationState.Faulted"/> state.</exception> public void EndOpen(IAsyncResult result) { ProxiedClient.EndOpen(result); }
/// <summary> /// Closes the client asynchronously. /// </summary> public void CloseAsync() { ProxiedClient.CloseAsync(); }
/// <summary> /// Processes the log messages asynchronously. /// </summary> /// <param name="events">The events to send.</param> /// <param name="userState">User-specific state.</param> public void ProcessLogMessagesAsync(NLogEvents events, object userState) { ProxiedClient.ProcessLogMessagesAsync(events, userState); }
/// <summary> /// Causes a communication object to transition from its current state into the closed state. /// </summary> /// <exception cref="T:System.ServiceModel.CommunicationObjectFaultedException"><see cref="M:System.ServiceModel.ICommunicationObject.Close"/> was called on an object in the <see cref="F:System.ServiceModel.CommunicationState.Faulted"/> state.</exception><exception cref="T:System.TimeoutException">The default close timeout elapsed before the <see cref="T:System.ServiceModel.ICommunicationObject"/> was able to close gracefully.</exception> public void Close() { ProxiedClient.Close(); }
/// <summary> /// Closes the client asynchronously. /// </summary> /// <param name="userState">User-specific state.</param> public void CloseAsync(object userState) { ProxiedClient.CloseAsync(userState); }
/// <summary> /// Causes a communication object to transition from its current state into the closed state. /// </summary> /// <param name="timeout">The <see cref="T:System.Timespan"/> that specifies how long the send operation has to complete before timing out.</param><exception cref="T:System.ServiceModel.CommunicationObjectFaultedException"><see cref="M:System.ServiceModel.ICommunicationObject.Close"/> was called on an object in the <see cref="F:System.ServiceModel.CommunicationState.Faulted"/> state.</exception><exception cref="T:System.TimeoutException">The timeout elapsed before the <see cref="T:System.ServiceModel.ICommunicationObject"/> was able to close gracefully.</exception> public void Close(TimeSpan timeout) { ProxiedClient.Close(timeout); }
/// <summary> /// Begins processing of log messages. /// </summary> /// <param name="events">The events to send.</param> /// <param name="callback">The callback.</param> /// <param name="asyncState">Asynchronous state.</param> /// <returns> /// IAsyncResult value which can be passed to <see cref="ILogReceiverOneWayClient.EndProcessLogMessages"/>. /// </returns> public IAsyncResult BeginProcessLogMessages(NLogEvents events, AsyncCallback callback, object asyncState) { return(ProxiedClient.BeginProcessLogMessages(events, callback, asyncState)); }
/// <summary> /// Begins an asynchronous operation to open a communication object within a specified interval of time. /// </summary> /// <returns> /// The <see cref="T:System.IAsyncResult"/> that references the asynchronous open operation. /// </returns> /// <param name="timeout">The <see cref="T:System.Timespan"/> that specifies how long the send operation has to complete before timing out.</param><param name="callback">The <see cref="T:System.AsyncCallback"/> delegate that receives notification of the completion of the asynchronous open operation.</param><param name="state">An object, specified by the application, that contains state information associated with the asynchronous open operation.</param><exception cref="T:System.ServiceModel.CommunicationException">The <see cref="T:System.ServiceModel.ICommunicationObject"/> was unable to be opened and has entered the <see cref="F:System.ServiceModel.CommunicationState.Faulted"/> state.</exception><exception cref="T:System.TimeoutException">The specified timeout elapsed before the <see cref="T:System.ServiceModel.ICommunicationObject"/> was able to enter the <see cref="F:System.ServiceModel.CommunicationState.Opened"/> state and has entered the <see cref="F:System.ServiceModel.CommunicationState.Faulted"/> state.</exception> public IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state) { return(ProxiedClient.BeginOpen(timeout, callback, state)); }
/// <summary> /// Opens the client asynchronously. /// </summary> /// <param name="userState">User-specific state.</param> public void OpenAsync(object userState) { ProxiedClient.OpenAsync(userState); }
/// <summary> /// Instructs the inner channel to display a user interface if one is required to initialize the channel prior to using it. /// </summary> public void DisplayInitializationUI() { ProxiedClient.DisplayInitializationUI(); }
/// <summary> /// Processes the log messages asynchronously. /// </summary> /// <param name="events">The events to send.</param> public void ProcessLogMessagesAsync(NLogEvents events) { ProxiedClient.ProcessLogMessagesAsync(events); }
/// <summary> /// Completes an asynchronous operation to close a communication object. /// </summary> /// <param name="result">The <see cref="T:System.IAsyncResult"/> that is returned by a call to the <see cref="M:System.ServiceModel.ICommunicationObject.BeginClose"/> method.</param><exception cref="T:System.ServiceModel.CommunicationObjectFaultedException"><see cref="M:System.ServiceModel.ICommunicationObject.BeginClose"/> was called on an object in the <see cref="F:System.ServiceModel.CommunicationState.Faulted"/> state.</exception><exception cref="T:System.TimeoutException">The timeout elapsed before the <see cref="T:System.ServiceModel.ICommunicationObject"/> was able to close gracefully.</exception> public void EndClose(IAsyncResult result) { ProxiedClient.EndClose(result); }
/// <summary> /// Causes a communication object to transition from its current state into the closed state. /// </summary> public void CloseCommunicationObject() { ProxiedClient.Close(); }
/// <summary> /// Causes a communication object to transition immediately from its current state into the closed state. /// </summary> public void Abort() { ProxiedClient.Abort(); }