| LogReceiverWebServiceTargetOnSend Method |
Called when log events are being sent (test hook).
Namespace:
NLog.Targets
Assembly:
NLog.Wcf (in NLog.Wcf.dll) Version: 5.2.1+bb45a7652322449cc5d22f0e8ecf7e119c124ca2
Syntax protected virtual bool OnSend(
NLogEvents events,
IEnumerable<AsyncLogEventInfo> asyncContinuations
)
Protected Overridable Function OnSend (
events As NLogEvents,
asyncContinuations As IEnumerable(Of AsyncLogEventInfo)
) As Boolean
Dim events As NLogEvents
Dim asyncContinuations As IEnumerable(Of AsyncLogEventInfo)
Dim returnValue As Boolean
returnValue = Me.OnSend(events, asyncContinuations)
abstract OnSend :
events : NLogEvents *
asyncContinuations : IEnumerable<AsyncLogEventInfo> -> bool
override OnSend :
events : NLogEvents *
asyncContinuations : IEnumerable<AsyncLogEventInfo> -> bool
Parameters
- events
- Type: NLog.LogReceiverServiceNLogEvents
The events. - asyncContinuations
- Type: System.Collections.GenericIEnumerableAsyncLogEventInfo
The async continuations.
Return Value
Type:
BooleanTrue if events should be sent, false to stop processing them.
See Also