Skip to content

Commit

Permalink
simplifications after review
Browse files Browse the repository at this point in the history
- decommission WaitForStop
  • Loading branch information
eduard-dumitru committed Nov 28, 2024
1 parent ce5c4a2 commit d031e64
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 37 deletions.
3 changes: 0 additions & 3 deletions src/UiPath.CoreIpc/Config/IpcServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ public sealed class IpcServer : IpcBase, IAsyncDisposable

private readonly object _lock = new();
private readonly TaskCompletionSource<object?> _listening = new();
private readonly TaskCompletionSource<object?> _stopped = new();
private readonly CancellationTokenSource _ctsActiveConnections = new();

private bool _disposeStarted;
Expand Down Expand Up @@ -70,7 +69,6 @@ public Task WaitForStart()
Start();
return _accepter.StartedAccepting;
}
public Task WaitForStop() => _stopped.Task;

internal ILogger? CreateLogger(string category) => ServiceProvider.MaybeCreateLogger(category);

Expand All @@ -82,7 +80,6 @@ private void OnNewConnection(Stream network)
private void OnNewConnectionError(Exception ex)
{
Trace.TraceError($"Failed to accept new connection. Ex: {ex}");
_stopped.TrySetException(ex);
}

internal RouterConfig CreateRouterConfig(IpcServer server) => RouterConfig.From(
Expand Down
33 changes: 0 additions & 33 deletions src/UiPath.Ipc.Tests/Program.cs

This file was deleted.

1 change: 0 additions & 1 deletion src/UiPath.Ipc.Tests/UiPath.Ipc.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFrameworks>net6.0;net461</TargetFrameworks>
<RootNamespace>UiPath.Ipc.Tests</RootNamespace>
<NoWarn>$(NoWarn);1998</NoWarn>
Expand Down

0 comments on commit d031e64

Please sign in to comment.