mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-02-16 13:14:49 +00:00
Merge remote-tracking branch 'origin/development' into PDC-23-PasswordManager
This commit is contained in:
@@ -76,6 +76,14 @@ namespace PepperDash.Core
|
|||||||
public class GenericTcpServerCommMethodReceiveTextArgs : EventArgs
|
public class GenericTcpServerCommMethodReceiveTextArgs : EventArgs
|
||||||
{
|
{
|
||||||
public uint ReceivedFromClientIndex { get; private set; }
|
public uint ReceivedFromClientIndex { get; private set; }
|
||||||
|
public ushort ReceivedFromClientIndexShort
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return (ushort)ReceivedFromClientIndex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public string Text { get; private set; }
|
public string Text { get; private set; }
|
||||||
|
|
||||||
public GenericTcpServerCommMethodReceiveTextArgs(string text)
|
public GenericTcpServerCommMethodReceiveTextArgs(string text)
|
||||||
|
|||||||
@@ -221,7 +221,12 @@ namespace PepperDash.Core
|
|||||||
|
|
||||||
Debug.Console(1, this, "Creating new SshClient");
|
Debug.Console(1, this, "Creating new SshClient");
|
||||||
ConnectionInfo connectionInfo = new ConnectionInfo(Hostname, Port, Username, pauth, kauth);
|
ConnectionInfo connectionInfo = new ConnectionInfo(Hostname, Port, Username, pauth, kauth);
|
||||||
Client = new SshClient(connectionInfo);
|
|
||||||
|
if (Client == null)
|
||||||
|
{
|
||||||
|
Client = new SshClient(connectionInfo);
|
||||||
|
}
|
||||||
|
Client.ErrorOccurred -= Client_ErrorOccurred;
|
||||||
Client.ErrorOccurred += Client_ErrorOccurred;
|
Client.ErrorOccurred += Client_ErrorOccurred;
|
||||||
|
|
||||||
//You can do it!
|
//You can do it!
|
||||||
|
|||||||
@@ -163,9 +163,17 @@ namespace PepperDash.Core
|
|||||||
|
|
||||||
CTimer RetryTimer;
|
CTimer RetryTimer;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="key"></param>
|
||||||
|
/// <param name="address"></param>
|
||||||
|
/// <param name="port"></param>
|
||||||
|
/// <param name="bufferSize"></param>
|
||||||
public GenericTcpIpClient(string key, string address, int port, int bufferSize)
|
public GenericTcpIpClient(string key, string address, int port, int bufferSize)
|
||||||
: base(key)
|
: base(key)
|
||||||
{
|
{
|
||||||
|
|
||||||
Hostname = address;
|
Hostname = address;
|
||||||
Port = port;
|
Port = port;
|
||||||
BufferSize = bufferSize;
|
BufferSize = bufferSize;
|
||||||
@@ -190,6 +198,21 @@ namespace PepperDash.Core
|
|||||||
//Client.SocketStatusChange += Client_SocketStatusChange;
|
//Client.SocketStatusChange += Client_SocketStatusChange;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="key"></param>
|
||||||
|
public GenericTcpIpClient(string key)
|
||||||
|
: base(key)
|
||||||
|
{
|
||||||
|
CrestronEnvironment.ProgramStatusEventHandler += new ProgramStatusEventHandler(CrestronEnvironment_ProgramStatusEventHandler);
|
||||||
|
AutoReconnectIntervalMs = 5000;
|
||||||
|
BufferSize = 2000;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Default constructor for S+
|
||||||
|
/// </summary>
|
||||||
public GenericTcpIpClient()
|
public GenericTcpIpClient()
|
||||||
: base("Uninitialized TcpIpClient")
|
: base("Uninitialized TcpIpClient")
|
||||||
{
|
{
|
||||||
@@ -250,8 +273,6 @@ namespace PepperDash.Core
|
|||||||
|
|
||||||
if (Client == null)
|
if (Client == null)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
Client = new TCPClient(Hostname, Port, BufferSize);
|
Client = new TCPClient(Hostname, Port, BufferSize);
|
||||||
Client.SocketStatusChange += Client_SocketStatusChange;
|
Client.SocketStatusChange += Client_SocketStatusChange;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,12 +77,10 @@ namespace PepperDash.Core.JsonToSimpl
|
|||||||
OnStringChange(ActualFilePath, 0, JsonToSimplConstants.ActualFilePathChange);
|
OnStringChange(ActualFilePath, 0, JsonToSimplConstants.ActualFilePathChange);
|
||||||
Debug.Console(1, "Actual JSON file is {0}", ActualFilePath);
|
Debug.Console(1, "Actual JSON file is {0}", ActualFilePath);
|
||||||
|
|
||||||
// TODO: pdc-20: added to retrun filename to SIMPL
|
|
||||||
Filename = actualFile.Name;
|
Filename = actualFile.Name;
|
||||||
OnStringChange(Filename, 0, JsonToSimplConstants.FilenameResolvedChange);
|
OnStringChange(Filename, 0, JsonToSimplConstants.FilenameResolvedChange);
|
||||||
Debug.Console(1, "JSON Filename is {0}", Filename);
|
Debug.Console(1, "JSON Filename is {0}", Filename);
|
||||||
|
|
||||||
// TODO: pdc-20: added to return the file path to SIMPL
|
|
||||||
FilePathName = string.Format(@"{0}\", actualFile.DirectoryName);
|
FilePathName = string.Format(@"{0}\", actualFile.DirectoryName);
|
||||||
OnStringChange(FilePathName, 0, JsonToSimplConstants.FilePathResolvedChange);
|
OnStringChange(FilePathName, 0, JsonToSimplConstants.FilePathResolvedChange);
|
||||||
Debug.Console(1, "JSON File Path is {0}", FilePathName);
|
Debug.Console(1, "JSON File Path is {0}", FilePathName);
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ function Update-AllAssemblyInfoFiles ( $version )
|
|||||||
$r= [System.Text.RegularExpressions.Regex]::Match($args[0], "^\d+\.\d+\.\d+$");
|
$r= [System.Text.RegularExpressions.Regex]::Match($args[0], "^\d+\.\d+\.\d+$");
|
||||||
if ($r.Success)
|
if ($r.Success)
|
||||||
{
|
{
|
||||||
|
echo "Updating Assembly Version...";
|
||||||
Update-AllAssemblyInfoFiles $args[0];
|
Update-AllAssemblyInfoFiles $args[0];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user