C# Class NLog.Targets.WebServiceTarget

Inheritance: NLog.Targets.MethodCallTargetBase
Mostra file Open project: NLog/NLog Class Usage Examples

Private Properties

Property Type Description
BuildWebServiceUrl System.Uri
DoInvoke void
PrepareGetRequest void
WriteStreamAndFixPreamble void

Public Methods

Method Description
WebServiceTarget ( ) : System

Initializes a new instance of the WebServiceTarget class.

WebServiceTarget ( string name ) : System

Initializes a new instance of the WebServiceTarget class.

Protected Methods

Method Description
DoInvoke ( object parameters ) : void

Calls the target method. Must be implemented in concrete classes.

DoInvoke ( object parameters, AsyncContinuation continuation ) : void

Invokes the web service method.

Private Methods

Method Description
BuildWebServiceUrl ( object parameterValues ) : Uri

Builds the URL to use when calling the web service for a message, depending on the WebServiceProtocol.

DoInvoke ( object parameters, AsyncContinuation continuation, HttpWebRequest request, IAsyncResult>.Func beginFunc, Stream>.Func getStreamFunc ) : void
PrepareGetRequest ( HttpWebRequest request ) : void
WriteStreamAndFixPreamble ( Stream input, Stream output, bool writeUtf8BOM, Encoding encoding ) : void

Write from input to output. Fix the UTF-8 bom

Method Details

DoInvoke() protected method

Calls the target method. Must be implemented in concrete classes.
protected DoInvoke ( object parameters ) : void
parameters object Method call parameters.
return void

DoInvoke() protected method

Invokes the web service method.
protected DoInvoke ( object parameters, AsyncContinuation continuation ) : void
parameters object Parameters to be passed.
continuation AsyncContinuation The continuation.
return void

WebServiceTarget() public method

Initializes a new instance of the WebServiceTarget class.
public WebServiceTarget ( ) : System
return System

WebServiceTarget() public method

Initializes a new instance of the WebServiceTarget class.
public WebServiceTarget ( string name ) : System
name string Name of the target
return System