Skip to content

Commit c9e3f99

Browse files
author
Dave Wyatt
committed
Updated references to class names in the psm1 and help files to match new name case from ReSharper
HostIoInterceptor instead of HostIOInterceptor, etc.
1 parent 2ea5b19 commit c9e3f99

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

Module/PSLogging/PSLogging.psm1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Cmdlets and associated data types are defined in PowerShellLoggingModule.dll. This script file just handles attaching and detaching the HostIOInterceptor object.
1+
# Cmdlets and associated data types are defined in PowerShellLoggingModule.dll. This script file just handles attaching and detaching the HostIoInterceptor object.
22

33
$dllPath = Join-Path -Path $MyInvocation.MyCommand.ScriptBlock.Module.ModuleBase -ChildPath PowerShellLoggingModule.dll
44

@@ -20,10 +20,10 @@ try {
2020

2121
$originalUI = $externalUIField.GetValue($ui)
2222

23-
$HostIOInterceptor = [PSLogging.HostIOInterceptor]::GetInterceptor()
24-
$HostIOInterceptor.HostUI = $originalUI
23+
$HostIoInterceptor = [PSLogging.HostIoInterceptor]::GetInterceptor()
24+
$HostIoInterceptor.HostUI = $originalUI
2525

26-
$externalUIField.SetValue($ui, $HostIOInterceptor)
26+
$externalUIField.SetValue($ui, $HostIoInterceptor)
2727

2828
# Detach the interceptor when the module is removed.
2929
$MyInvocation.MyCommand.ScriptBlock.Module.OnRemove = {

Module/PSLogging/en-US/PowerShellLoggingModule.dll-help.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ While not required, it is recommended that the OnError script block disable this
192192
<!--This is the Description section-->
193193
<maml:para>This cmdlet creates a new ScriptBlockOutputSubscriber object and attaches it to the current session&apos;s host interceptor. Every time a line is written to the console via the Output, Error, Warning, Verbose or Debug streams, the corresponding script block is called. The script block will be sent a single string argument containing the line to be written (including the trailing &quot;`r`n&quot; characters).
194194

195-
This is a generic implementation of the HostIOInterceptor / HostIOSubscriber classes that allows script writers to develop their own logging logic rather than using the included PSLogFile class.</maml:para>
195+
This is a generic implementation of the HostIoInterceptor / HostIoSubscriber classes that allows script writers to develop their own logging logic rather than using the included PSLogFile class.</maml:para>
196196
</maml:description>
197197
<command:syntax>
198198
<command:syntaxItem>

Module/PSLogging/en-US/about_PSLogging.help.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ SHORT DESCRIPTION
55
Provides background information about the PSLogging module.
66

77
LONG DESCRIPTION
8-
This topic provides information about the PSLogging.IHostIOSubscriber
8+
This topic provides information about the PSLogging.IHostIoSubscriber
99
interface, the PSLogging.LogFile and PSLogging.ScriptBlockOutputSubscriber
1010
classes that implement it, and the Windows PowerShell cmdlets used to
1111
manage objects of these types.
@@ -27,21 +27,21 @@ LONG DESCRIPTION
2727
module with similar (though less complete) functionality available at
2828
http://gallery.technet.microsoft.com/scriptcenter/Write-timestamped-output-4ff1565f
2929

30-
PSLogging.HostIOInterceptor and PSLogging.IHostIOSubscriber
31-
The heart of this module is the HostIOInterceptor class, which is a subclass
30+
PSLogging.HostIoInterceptor and PSLogging.IHostIoSubscriber
31+
The heart of this module is the HostIoInterceptor class, which is a subclass
3232
of Microsoft's System.Management.Automation.Host.PSHostUserInterface class
3333
and acts as a middle man between the InternalHostUserInterface class and its
3434
externalUI field. Every time the PowerShell host sends text output to the
3535
console or ISE output window, it does so via calls to the externalUI field.
3636

3737
This module replaces the externalUI field with an instace of the
38-
HostIOInterceptor object. HostIOInterceptor passes calls on to the original
38+
HostIoInterceptor object. HostIoInterceptor passes calls on to the original
3939
externalUI object, and also to any number of objects implementing the
40-
PSLogging.IHostIOSubscriber interface, with one minor difference: when passing
40+
PSLogging.IHostIoSubscriber interface, with one minor difference: when passing
4141
output to the subscribers, it is broken up into lines, and the strings sent
4242
to the subscriber include the trailing carriage return/newline characters.
4343

44-
The module provides two classes that implement IHostIOSubscriber out of the
44+
The module provides two classes that implement IHostIoSubscriber out of the
4545
box: PSLogging.LogFile and PSLogging.ScriptBlockOutputSubscriber. Both of
4646
these classes focus only on host Output (Output, Error, Warning, Verbose and
4747
Debug streams). The LogFile class has certain hard-coded behavior that I

0 commit comments

Comments
 (0)