Esempio n. 1
0
 /// <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);
 }
Esempio n. 2
0
 /// <summary>
 /// Opens the client asynchronously.
 /// </summary>
 public void OpenAsync()
 {
     ProxiedClient.OpenAsync();
 }
Esempio n. 3
0
 /// <summary>
 /// Ends asynchronous processing of log messages.
 /// </summary>
 /// <param name="result">The result.</param>
 public void EndProcessLogMessages(IAsyncResult result)
 {
     ProxiedClient.EndProcessLogMessages(result);
 }
Esempio n. 4
0
 /// <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();
 }
Esempio n. 5
0
 /// <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));
 }
Esempio n. 6
0
 /// <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);
 }
Esempio n. 7
0
 /// <summary>
 /// Closes the client asynchronously.
 /// </summary>
 public void CloseAsync()
 {
     ProxiedClient.CloseAsync();
 }
Esempio n. 8
0
 /// <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);
 }
Esempio n. 9
0
 /// <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();
 }
Esempio n. 10
0
 /// <summary>
 /// Closes the client asynchronously.
 /// </summary>
 /// <param name="userState">User-specific state.</param>
 public void CloseAsync(object userState)
 {
     ProxiedClient.CloseAsync(userState);
 }
Esempio n. 11
0
 /// <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);
 }
Esempio n. 12
0
 /// <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));
 }
Esempio n. 13
0
 /// <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));
 }
Esempio n. 14
0
 /// <summary>
 /// Opens the client asynchronously.
 /// </summary>
 /// <param name="userState">User-specific state.</param>
 public void OpenAsync(object userState)
 {
     ProxiedClient.OpenAsync(userState);
 }
Esempio n. 15
0
 /// <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();
 }
Esempio n. 16
0
 /// <summary>
 /// Processes the log messages asynchronously.
 /// </summary>
 /// <param name="events">The events to send.</param>
 public void ProcessLogMessagesAsync(NLogEvents events)
 {
     ProxiedClient.ProcessLogMessagesAsync(events);
 }
Esempio n. 17
0
 /// <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);
 }
Esempio n. 18
0
 /// <summary>
 /// Causes a communication object to transition from its current state into the closed state.
 /// </summary>
 public void CloseCommunicationObject()
 {
     ProxiedClient.Close();
 }
Esempio n. 19
0
 /// <summary>
 /// Causes a communication object to transition immediately from its current state into the closed state.
 /// </summary>
 public void Abort()
 {
     ProxiedClient.Abort();
 }