Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revamp CoreIpc [ROBO-3791] #106

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
taking shape
  • Loading branch information
eduard-dumitru committed Dec 9, 2024
commit cd06d859c9cb30aa1345d5dca066ec9ccd731ac6
3 changes: 3 additions & 0 deletions src/UiPath.CoreIpc/Helpers/Helpers.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Microsoft.IO;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.IO.Pipes;
using System.Runtime.InteropServices;
using System.Security.AccessControl;
Expand Down Expand Up @@ -136,6 +137,8 @@ public static PipeSecurity AllowCurrentUser(this PipeSecurity pipeSecurity, bool
return pipeSecurity;
}

[Browsable(false)]
[EditorBrowsable( EditorBrowsableState.Never)]
public static bool PipeExists(string pipeName, int timeout = 1)
{
try
Expand Down
4 changes: 2 additions & 2 deletions src/UiPath.CoreIpc/Wire/EndpointNotFoundException.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
namespace UiPath.Ipc;

public sealed class EndpointNotFoundException : ArgumentOutOfRangeException
public sealed class EndpointNotFoundException : ArgumentException
{
public string ServerDebugName { get; }
public string EndpointName { get; }

public EndpointNotFoundException(string paramName, string serverDebugName, string endpointName)
internal EndpointNotFoundException(string paramName, string serverDebugName, string endpointName)
: base(paramName, FormatMessage(serverDebugName, endpointName))
{
ServerDebugName = serverDebugName;
Expand Down