-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Experimental passing PSInvocationState to WebView #5
- Loading branch information
Showing
8 changed files
with
159 additions
and
12 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
HoubyStudio.LazyAdmin.DesktopApp/HoubyStudio.LazyAdmin.DesktopApp/CSharpMessage.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace HoubyStudio.LazyAdmin.DesktopApp | ||
{ | ||
public class CSharpMessage | ||
{ | ||
private Guid _uid; | ||
|
||
public Guid Uid | ||
{ | ||
set => _uid = value; | ||
get => _uid; | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...udio.LazyAdmin.DesktopApp/HoubyStudio.LazyAdmin.DesktopApp/CSharpRunspaceStatusMessage.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace HoubyStudio.LazyAdmin.DesktopApp | ||
{ | ||
public class CSharpRunspaceStatusMessage : CSharpMessage | ||
{ | ||
public string Type { set; get; } | ||
public string Status { set; get; } | ||
public string Result { set; get; } | ||
|
||
public CSharpRunspaceStatusMessage(Guid uid, string status, string result) | ||
{ | ||
Type = "runespacestatus"; | ||
Uid = uid; | ||
Status = status; | ||
Result = result; | ||
} | ||
|
||
public CSharpRunspaceStatusMessage(Guid uid, string status) | ||
{ | ||
Type = "runespacestatus"; | ||
Uid = uid; | ||
Status = status; | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...yStudio.LazyAdmin.DesktopApp/HoubyStudio.LazyAdmin.DesktopApp/ExecutePowerShellMessage.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace HoubyStudio.LazyAdmin.DesktopApp | ||
{ | ||
public class ExecutePowerShellMessage : WebViewMessage | ||
{ | ||
// TODO: Create command class containing command, parameters, common parameters etc. | ||
// TODO: Create list of command classes here to be iritated and added to ps command stack | ||
private string _command; | ||
|
||
public string Command | ||
{ | ||
set => _command = value; | ||
get => _command; | ||
} | ||
} | ||
} |
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
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
26 changes: 26 additions & 0 deletions
26
HoubyStudio.LazyAdmin.DesktopApp/HoubyStudio.LazyAdmin.DesktopApp/WebViewMessage.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace HoubyStudio.LazyAdmin.DesktopApp | ||
{ | ||
public class WebViewMessage | ||
{ | ||
private Guid _uid; | ||
private Guid _token; | ||
|
||
public Guid Uid | ||
{ | ||
set => _uid = value; | ||
get => _uid; | ||
} | ||
|
||
public Guid Token | ||
{ | ||
set => _token = value; | ||
get => _token; | ||
} | ||
} | ||
} |