Search Results for

    Show / Hide Table of Contents

    Class DiagnosticListener

    Inheritance
    System.Object
    DiagnosticSource
    DiagnosticListener
    Implements
    System.IObservable<System.Collections.Generic.KeyValuePair<System.String, System.Object>>
    System.IDisposable
    Inherited Members
    DiagnosticSource.StartActivity(Activity, Object)
    DiagnosticSource.StopActivity(Activity, Object)
    Namespace: System.Diagnostics
    Assembly: IronZip.dll
    Syntax
    public class DiagnosticListener : DiagnosticSource

    Constructors

    DiagnosticListener(String)

    Declaration
    public DiagnosticListener(string name)
    Parameters
    Type Name Description
    System.String name

    Properties

    AllListeners

    Declaration
    public static IObservable<DiagnosticListener> AllListeners { get; }
    Property Value
    Type Description
    System.IObservable<DiagnosticListener>

    Name

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String

    Methods

    Dispose()

    Declaration
    public virtual void Dispose()

    IsEnabled()

    Declaration
    public bool IsEnabled()
    Returns
    Type Description
    System.Boolean

    IsEnabled(String)

    Declaration
    public override bool IsEnabled(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    System.Boolean
    Overrides
    DiagnosticSource.IsEnabled(String)

    IsEnabled(String, Object, Object)

    Declaration
    public override bool IsEnabled(string name, object arg1, object arg2 = null)
    Parameters
    Type Name Description
    System.String name
    System.Object arg1
    System.Object arg2
    Returns
    Type Description
    System.Boolean
    Overrides
    DiagnosticSource.IsEnabled(String, Object, Object)

    Subscribe(IObserver<KeyValuePair<String, Object>>)

    Declaration
    public virtual IDisposable Subscribe(IObserver<KeyValuePair<string, object>> observer)
    Parameters
    Type Name Description
    System.IObserver<System.Collections.Generic.KeyValuePair<System.String, System.Object>> observer
    Returns
    Type Description
    System.IDisposable

    Subscribe(IObserver<KeyValuePair<String, Object>>, Func<String, Object, Object, Boolean>)

    Declaration
    public virtual IDisposable Subscribe(IObserver<KeyValuePair<string, object>> observer, Func<string, object, object, bool> isEnabled)
    Parameters
    Type Name Description
    System.IObserver<System.Collections.Generic.KeyValuePair<System.String, System.Object>> observer
    System.Func<System.String, System.Object, System.Object, System.Boolean> isEnabled
    Returns
    Type Description
    System.IDisposable

    Subscribe(IObserver<KeyValuePair<String, Object>>, Predicate<String>)

    Declaration
    public virtual IDisposable Subscribe(IObserver<KeyValuePair<string, object>> observer, Predicate<string> isEnabled)
    Parameters
    Type Name Description
    System.IObserver<System.Collections.Generic.KeyValuePair<System.String, System.Object>> observer
    System.Predicate<System.String> isEnabled
    Returns
    Type Description
    System.IDisposable

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    Write(String, Object)

    Declaration
    public override void Write(string name, object value)
    Parameters
    Type Name Description
    System.String name
    System.Object value
    Overrides
    DiagnosticSource.Write(String, Object)

    Implements

    System.IObservable<>
    System.IDisposable

    Inherited members

    StartActivity(Activity, Object)
    StopActivity(Activity, Object)
    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet
    Want to deploy IronZIP to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronZIP free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.