1 write to ProducerUdsPath
Aspire.TerminalHost (1)
TerminalHostArgs.cs (1)
130
ProducerUdsPath
= parseResult.GetValue(producerOption)!,
32 references to ProducerUdsPath
Aspire.TerminalHost (3)
TerminalHostApp.cs (3)
69
ProducerUdsPath = _args.
ProducerUdsPath
,
106
_args.Columns, _args.Rows, _args.
ProducerUdsPath
, _args.ConsumerUdsPath);
117
_args.
ProducerUdsPath
,
Aspire.TerminalHost.Tests (29)
TerminalHostAppTests.cs (27)
116
Assert.Equal(args.
ProducerUdsPath
, session.ProducerUdsPath);
247
Assert.Equal(args.
ProducerUdsPath
, snap.ProducerUdsPath);
286
File.WriteAllBytes(args.
ProducerUdsPath
, []);
288
Assert.True(File.Exists(args.
ProducerUdsPath
));
303
await using var producer = await ConnectProducerAsync(args.
ProducerUdsPath
, TimeSpan.FromSeconds(10));
344
await using (var producer = await ConnectProducerAsync(args.
ProducerUdsPath
, TimeSpan.FromSeconds(5)))
368
await using (var producer = await ConnectProducerAsync(args.
ProducerUdsPath
, TimeSpan.FromSeconds(10)))
390
Assert.Equal(args.
ProducerUdsPath
, afterCycle2.ProducerUdsPath);
415
await WaitForFileAsync(args.
ProducerUdsPath
, TimeSpan.FromSeconds(10));
437
await using var producer = await ConnectProducerAsync(args.
ProducerUdsPath
, TimeSpan.FromSeconds(5));
494
await WaitForFileAsync(args.
ProducerUdsPath
, TimeSpan.FromSeconds(10));
496
Assert.True(File.Exists(args.
ProducerUdsPath
), "Producer socket should be bound while the replica waits.");
509
File.Exists(args.
ProducerUdsPath
),
510
$"Producer socket '{args.
ProducerUdsPath
}' should be deleted after graceful shutdown.");
563
await using var producer = await ConnectProducerAsync(args.
ProducerUdsPath
, TimeSpan.FromSeconds(5));
609
await using var producer = await ConnectProducerAsync(args.
ProducerUdsPath
, TimeSpan.FromSeconds(5));
694
await using var producer = await ConnectProducerAsync(args.
ProducerUdsPath
, TimeSpan.FromSeconds(5));
840
await using (var producer = await ConnectProducerAsync(args.
ProducerUdsPath
, TimeSpan.FromSeconds(5)))
876
args.
ProducerUdsPath
, TimeSpan.FromSeconds(10));
1249
File.Delete(args.
ProducerUdsPath
);
1251
var acceptTask = TerminalReplica.AcceptProducerAsync(args.
ProducerUdsPath
, cts.Token);
1257
AssertSocketIsRestrictedToOwningUser(args.
ProducerUdsPath
);
1259
await socket.ConnectAsync(new UnixDomainSocketEndPoint(args.
ProducerUdsPath
), cts.Token);
1336
File.Delete(args.
ProducerUdsPath
);
1338
var acceptTask = TerminalReplica.AcceptProducerAsync(args.
ProducerUdsPath
, cts.Token);
1341
AssertSocketIsRestrictedToOwningUser(args.
ProducerUdsPath
);
1367
"producer" => args.
ProducerUdsPath
,
TerminalHostArgsTests.cs (2)
17
Assert.Equal("/tmp/p.sock", args.
ProducerUdsPath
);
49
Assert.Equal("/tmp/p.sock", args.
ProducerUdsPath
);