7 references to Parse
Aspire.Hosting.Native.Core.Tests (6)
NativeConfigurationTests.cs (6)
161
var endpoint = Assert.IsType<IPEndPoint>(NativeStartupArguments.
Parse
(["--port", "0"], configuredSocket: null));
164
Assert.Throws<ArgumentException>(() => NativeStartupArguments.
Parse
(["--port", "65536"], configuredSocket: null));
165
Assert.Throws<ArgumentException>(() => NativeStartupArguments.
Parse
(["--socket", ""], configuredSocket: null));
168
var pipe = Assert.IsType<NamedPipeEndPoint>(NativeStartupArguments.
Parse
(["--socket", "apphost.sock.test"], configuredSocket: null));
171
Assert.Throws<ArgumentException>(() => NativeStartupArguments.
Parse
(["--socket", @"\\remote\pipe\test"], configuredSocket: null));
175
Assert.Throws<ArgumentException>(() => NativeStartupArguments.
Parse
(["--socket", "relative"], configuredSocket: null));
Aspire.Hosting.Native.Server (1)
NativeServerHostedService.cs (1)
88
var endPoint = NativeStartupArguments.
Parse
(args, settings.SocketPath);