Skip to content

Commit 7c7792a

Browse files
author
Bob Pokorny
committed
Fixed problem with null value for _logger.
Fixed type-o in PowerShell function to unbind from IIS
1 parent e204db8 commit 7c7792a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

IISU/ImplementedStoreTypes/WinIIS/WinIISBinding.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ public static void BindCertificate(PSHelper psHelper, IISBindingInfo bindingInfo
7272

7373
public static bool UnBindCertificate(PSHelper psHelper, IISBindingInfo bindingInfo)
7474
{
75-
_logger.LogTrace("Attempting to UnBind and execute PS function (Remove-KFIISBinding)");
75+
_logger = LogHandler.GetClassLogger(typeof(WinIISBinding));
76+
_logger.LogTrace("Attempting to UnBind and execute PS function (Remove-KFIISSiteBinding)");
7677

7778
// Mandatory parameters
7879
var parameters = new Dictionary<string, object>
@@ -90,8 +91,8 @@ public static bool UnBindCertificate(PSHelper psHelper, IISBindingInfo bindingIn
9091

9192
try
9293
{
93-
var results = psHelper.ExecutePowerShell("Remove-KFIISBinding", parameters);
94-
_logger.LogTrace("Returned from executing PS function (Remove-KFIISBinding)");
94+
var results = psHelper.ExecutePowerShell("Remove-KFIISSiteBinding", parameters);
95+
_logger.LogTrace("Returned from executing PS function (Remove-KFIISSiteBinding)");
9596

9697
if (results == null || results.Count == 0)
9798
{

0 commit comments

Comments
 (0)