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
function Generate-JWT ( | |
[Parameter(Mandatory = $True)] | |
[ValidateSet("HS256", "HS384", "HS512")] | |
$Algorithm = $null, | |
$type = $null, | |
[Parameter(Mandatory = $True)] | |
[string]$Issuer = $null, | |
[int]$ValidforSeconds = $null, | |
[Parameter(Mandatory = $True)] | |
$SecretKey = $null |
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
String filename = DateTime.Today.Day.ToString() + DateTime.Today.Month.ToString() + DateTime.Today.Year.ToString() + Environment.MachineName.ToString() + ".log"; | |
DateTime LastAccessed = File.GetLastWriteTime(@"C:\RestartLogs\" + filename); | |
Dictionary<string, string> stepDataPropertiesDictonary = null; | |
Dictionary<string, string> appointmentPropertiesDictionary = null; | |
Dictionary<string, string> testCenterPropertiesDictionary = null; | |
if (LastAccessed.AddMinutes(5) > DateTime.Now) | |
{ | |
String json = File.ReadAllText(@"C:\RestartLogs\" + filename); | |
JObject parsedJson = JObject.Parse(json); |
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
{"testData": | |
[ | |
{ | |
"unixTime": 1529673857, | |
"eventName": "Test Opened", | |
"pageCount": "1", | |
"skip": "false" | |
}, | |
{ | |
"unixTime": 1529673859, |