-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extract protocol actions into constants
- Loading branch information
Showing
8 changed files
with
56 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
using Moq; | ||
using WinRMSharp.Test; | ||
using Xunit; | ||
|
||
namespace WinRMSharp.Tests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
using System.Net; | ||
using WinRMSharp.Test; | ||
using Xunit; | ||
|
||
namespace WinRMSharp.Tests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace WinRMSharp.Contracts | ||
{ | ||
internal class SignalCode | ||
{ | ||
#pragma warning disable IDE1006 // Naming Styles | ||
public const string Terminate = "http://schemas.microsoft.com/wbem/wsman/1/windows/shell/signal/terminate"; | ||
#pragma warning disable IDE1006 // Naming Styles | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace WinRMSharp.Contracts | ||
{ | ||
internal class WSManAction | ||
{ | ||
#pragma warning disable IDE1006 // Naming Styles | ||
public const string Create = "http://schemas.xmlsoap.org/ws/2004/09/transfer/Create"; | ||
public const string Delete = "http://schemas.xmlsoap.org/ws/2004/09/transfer/Delete"; | ||
|
||
public const string Command = "http://schemas.microsoft.com/wbem/wsman/1/windows/shell/Command"; | ||
public const string Receive = "http://schemas.microsoft.com/wbem/wsman/1/windows/shell/Receive"; | ||
public const string Send = "http://schemas.microsoft.com/wbem/wsman/1/windows/shell/Send"; | ||
public const string Signal = "http://schemas.microsoft.com/wbem/wsman/1/windows/shell/Signal"; | ||
#pragma warning disable IDE1006 // Naming Styles | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
src/WinRMSharp/Utils/WsmanFault.cs → src/WinRMSharp/Contracts/WSManFault.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters