C# Class GSF.Diagnostics.LogSubscriberInternal

A LogSubscriberInternal that collects logs
Datei anzeigen Open project: GridProtectionAlliance/gsf Class Usage Examples

Public Properties

Property Type Description
DisposedSubscriber LogSubscriberInternal
Reference System.WeakReference

Public Methods

Method Description
Clear ( ) : void

Clears all subscriptions

Dispose ( ) : void

Disposes this class so future messages will not route.

GetSubscription ( LogPublisherInternal publisher ) : MessageAttributeFilter
LogSubscriberInternal ( System.Action recalculateRoutingTable ) : System

Creates a LogSubscriberInternal

RaiseLogMessages ( LogMessage log ) : void

Assigns the supplied message to this subscriber.

Subscribe ( PublisherFilter publisherFilter, MessageAttributeFilter attributeFilter, bool isIgnoreSubscription ) : void

Adds/Modify/Deletes an existing subscription

Private Methods

Method Description
LogSubscriberInternal ( ) : System
OnLog ( LogMessage logMessage ) : void

Raises the NewLogMessage event.

Method Details

Clear() public method

Clears all subscriptions
public Clear ( ) : void
return void

Dispose() public method

Disposes this class so future messages will not route.
public Dispose ( ) : void
return void

GetSubscription() public method

public GetSubscription ( LogPublisherInternal publisher ) : MessageAttributeFilter
publisher LogPublisherInternal
return MessageAttributeFilter

LogSubscriberInternal() public method

Creates a LogSubscriberInternal
public LogSubscriberInternal ( System.Action recalculateRoutingTable ) : System
recalculateRoutingTable System.Action
return System

RaiseLogMessages() public method

Assigns the supplied message to this subscriber.
public RaiseLogMessages ( LogMessage log ) : void
log LogMessage the message
return void

Subscribe() public method

Adds/Modify/Deletes an existing subscription
public Subscribe ( PublisherFilter publisherFilter, MessageAttributeFilter attributeFilter, bool isIgnoreSubscription ) : void
publisherFilter PublisherFilter
attributeFilter MessageAttributeFilter
isIgnoreSubscription bool
return void

Property Details

DisposedSubscriber public_oe static_oe property

public static LogSubscriberInternal,GSF.Diagnostics DisposedSubscriber
return LogSubscriberInternal

Reference public_oe property

Since weak references are linked to this class, this is a common one that everyone can use when storing this weak reference.
public WeakReference,System Reference
return System.WeakReference