C# Class GSF.Diagnostics.PublisherFilter

Describes a kind of publisher. This can be All, or a subset based on Assembly (dll) or Type (namespace/type)
Show file Open project: GridProtectionAlliance/gsf Class Usage Examples

Public Methods

Method Description
ContainsPublisher ( LogPublisherInternal publisher ) : bool

Gets if this subscription contains the publisher.

ContainsTheSameLogSearchCriteria ( PublisherFilter other ) : bool
CreateAssembly ( Assembly assembly ) : PublisherFilter

Creates a topic from the specified assembly.

CreateAssembly ( string name ) : PublisherFilter

Creates a topic from the specified assembly file name.

CreateType ( Type type ) : PublisherFilter

Creates a type topic on a specified type.

CreateType ( string name ) : PublisherFilter

Creates a topic from the specified list

CreateUniversal ( ) : PublisherFilter

Creates a universal topic.

ToString ( ) : string

Returns a string that represents the current object.

Private Methods

Method Description
PublisherFilter ( FilterType filterType ) : System

Creates a either Universal or LogSource Topic

PublisherFilter ( FilterType filterType, string text ) : System

Creates an Assembly, Type.

TrimAfterFullName ( string name ) : string

Trims the unused information after the namespace.class+subclass details.

Method Details

ContainsPublisher() public method

Gets if this subscription contains the publisher.
public ContainsPublisher ( LogPublisherInternal publisher ) : bool
publisher LogPublisherInternal the publisher to check
return bool

ContainsTheSameLogSearchCriteria() public method

public ContainsTheSameLogSearchCriteria ( PublisherFilter other ) : bool
other PublisherFilter
return bool

CreateAssembly() public static method

Creates a topic from the specified assembly.
public static CreateAssembly ( Assembly assembly ) : PublisherFilter
assembly System.Reflection.Assembly
return PublisherFilter

CreateAssembly() public static method

Creates a topic from the specified assembly file name.
public static CreateAssembly ( string name ) : PublisherFilter
name string the assembly file name (.dll or .exe)
return PublisherFilter

CreateType() public static method

Creates a type topic on a specified type.
public static CreateType ( Type type ) : PublisherFilter
type System.Type
return PublisherFilter

CreateType() public static method

Creates a topic from the specified list
public static CreateType ( string name ) : PublisherFilter
name string
return PublisherFilter

CreateUniversal() public static method

Creates a universal topic.
public static CreateUniversal ( ) : PublisherFilter
return PublisherFilter

ToString() public method

Returns a string that represents the current object.
public ToString ( ) : string
return string