Volume Control
Application-specific hotkeys for Windows
VolumeControl.Log.Endpoints.BaseEndpointWriter Class Referenceabstract

Abstract base class for endpoint writers. More...

Inheritance diagram for VolumeControl.Log.Endpoints.BaseEndpointWriter:
Collaboration diagram for VolumeControl.Log.Endpoints.BaseEndpointWriter:

Public Member Functions

abstract TextWriter GetTextWriter ()
 Gets a TextWriter object for writing to this endpoint.
 
abstract void Reset ()
 Clears the endpoint's contents, leaving it blank.
 
virtual void Write (string @string)
 Writes the specified string to the endpoint.
 
virtual void WriteLine (string @string)
 Writes the specified string to the endpoint, followed by a line break.
 
virtual void WriteLine ()
 Writes a line break to the endpoint. More...
 

Protected Member Functions

 BaseEndpointWriter (bool isWritingEnabled=true)
 Creates a new BaseEndpointWriter instance. More...
 
void NotifyPropertyChanged ([CallerMemberName] string propertyName="")
 Triggers the PropertyChanged event for the specified propertyName . More...
 

Properties

bool IsWritingEnabled [get, set]
 
- Properties inherited from VolumeControl.Log.Interfaces.IEndpointWriter
bool IsWritingEnabled [get, set]
 Gets or sets whether this endpoint can be written to. More...
 

Events

EventHandler< bool >? EnabledChanging
 
EventHandler< bool >? EnabledChanged
 
PropertyChangedEventHandler? PropertyChanged
 
- Events inherited from VolumeControl.Log.Interfaces.IEndpointWriter
EventHandler< bool >? EnabledChanging
 Occurs when the endpoint is about to be enabled or disabled for any reason. More...
 
EventHandler< bool >? EnabledChanged
 Occurs when the endpoint is enabled or disabled for any reason. More...
 

Detailed Description

Abstract base class for endpoint writers.

Constructor & Destructor Documentation

◆ BaseEndpointWriter()

VolumeControl.Log.Endpoints.BaseEndpointWriter.BaseEndpointWriter ( bool  isWritingEnabled = true)
protected

Creates a new BaseEndpointWriter instance.

Parameters
isWritingEnabledThe initial state

Member Function Documentation

◆ NotifyPropertyChanged()

void VolumeControl.Log.Endpoints.BaseEndpointWriter.NotifyPropertyChanged ( [CallerMemberName] string  propertyName = "")
protected

Triggers the PropertyChanged event for the specified propertyName .

Parameters
propertyNameThe name of the property that was changed.

◆ WriteLine()

virtual void VolumeControl.Log.Endpoints.BaseEndpointWriter.WriteLine ( )
virtual

Writes a line break to the endpoint.


The documentation for this class was generated from the following file: