9 implementations of IAppHostServerProject
aspire (2)
Projects\DotNetBasedAppHostServerProject.cs (1)
25internal sealed class DotNetBasedAppHostServerProject : IAppHostServerProject
Projects\PrebuiltAppHostServer.cs (1)
38internal sealed partial class PrebuiltAppHostServer : IAppHostServerProject, IDisposable
Aspire.Cli.Tests (7)
Commands\Sdk\SdkExportCommandTests.cs (1)
437private sealed class CapturingAppHostServerProject : IAppHostServerProject
Projects\AppHostServerSessionTests.cs (3)
583private sealed class RecordingAppHostServerProject : IAppHostServerProject 631private sealed class LongRunningAppHostServerProject : IAppHostServerProject 679private sealed class ThrowingAppHostServerProject : IAppHostServerProject, IDisposable
Scaffolding\ChannelReseedTests.cs (1)
131private sealed class CapturingAppHostServerProject(string appDirectoryPath) : IAppHostServerProject
TestServices\FakeFailingAppHostServerProject.cs (1)
16internal sealed class FakeFailingAppHostServerProject(string appDirectoryPath) : IAppHostServerProject, IDisposable
TestServices\FakeSucceedingAppHostServerProject.cs (1)
15internal sealed class FakeSucceedingAppHostServerProject(string appDirectoryPath) : IAppHostServerProject, IDisposable
47 references to IAppHostServerProject
aspire (22)
Commands\Sdk\SdkDumpCommand.cs (3)
164private Task<IAppHostServerProject> CreateCapabilityScannerProjectAsync(string tempDir, CancellationToken cancellationToken) 181var appHostServerProject = await CreateCapabilityScannerProjectAsync(tempDir, cancellationToken); 280var appHostServerProject = await CreateCapabilityScannerProjectAsync(tempDir, cancellationToken);
Commands\Sdk\SdkExportCommand.cs (1)
187var appHostServerProject = await _appHostServerProjectFactory.CreateAsync(
Commands\Sdk\SdkGenerateCommand.cs (1)
119var appHostServerProject = await _appHostServerProjectFactory.CreateAsync(tempDir, cancellationToken);
Projects\AppHostServerProject.cs (4)
19Task<IAppHostServerProject> CreateAsync(string appPath, CancellationToken cancellationToken = default); 20Task<IAppHostServerProject> CreateAsync(string appPath, string? restoreRootConfigDirectory, CancellationToken cancellationToken); 38public Task<IAppHostServerProject> CreateAsync(string appPath, CancellationToken cancellationToken = default) 41public async Task<IAppHostServerProject> CreateAsync(string appPath, string? restoreRootConfigDirectory, CancellationToken cancellationToken)
Projects\AppHostServerSession.cs (4)
21/// <see cref="IAppHostServerProject.RunAsync"/>. Termination is requested either by cancelling the 31private readonly IAppHostServerProject _project; 62IAppHostServerProject project, 480IAppHostServerProject appHostServerProject,
Projects\GuestAppHostProject.cs (5)
279IAppHostServerProject appHostServerProject, 302var appHostServerProject = await _appHostServerProjectFactory.CreateAsync(directory.FullName, cancellationToken); 425var appHostServerProject = await _appHostServerProjectFactory.CreateAsync(directory.FullName, cancellationToken); 1078var appHostServerProject = await _appHostServerProjectFactory.CreateAsync(directory.FullName, cancellationToken); 1637var appHostServerProject = await _appHostServerProjectFactory.CreateAsync(directory.FullName, cancellationToken);
Projects\IAppHostServerProject.cs (2)
25/// Result of <see cref="IAppHostServerProject.RunAsync"/> — a launched AppHost server process plus the 46/// Controls how <see cref="IAppHostServerProject.RunAsync"/> spawns and tears down the server child.
Projects\IAppHostServerSession.cs (1)
88IAppHostServerProject appHostServerProject,
Scaffolding\ScaffoldingService.cs (1)
135var appHostServerProject = await _appHostServerProjectFactory.CreateAsync(scaffoldDirectory.FullName, cancellationToken);
Aspire.Cli.Tests (25)
Commands\NewCommandTemplateConfigPersistenceTests.cs (2)
269Task.FromResult<IAppHostServerProject>(new FakeSucceedingAppHostServerProject(path)) 385Task.FromResult<IAppHostServerProject>(new FakeSucceedingAppHostServerProject(path))
Commands\Sdk\SdkExportCommandTests.cs (1)
372IAppHostServerProject appHostServerProject,
Commands\SdkDumpCommandTests.cs (1)
268return Task.FromResult<IAppHostServerProject>(new FakeFailingAppHostServerProject(appPath));
Projects\AppHostServerSessionTests.cs (1)
544IAppHostServerProject project,
Projects\GuestAppHostProjectTests.cs (11)
857CreateAsyncCallback = (path, _) => Task.FromResult<IAppHostServerProject>(new FakeSucceedingAppHostServerProject(path)) 920CreateAsyncCallback = (path, _) => Task.FromResult<IAppHostServerProject>(new FakeFailingAppHostServerProject(path)) 1063Task.FromResult<IAppHostServerProject>(new FakeFailingAppHostServerProject(appPath)) 1096Task.FromResult<IAppHostServerProject>(new FakeFailingAppHostServerProject(appPath)) 1284/// fake <see cref="IAppHostServerProject"/> that returns a failed prepare result so 1321Task.FromResult<IAppHostServerProject>(new FakeFailingAppHostServerProject(path)) 1417Task.FromResult<IAppHostServerProject>(new FakeSucceedingAppHostServerProject(path)) 1488Task.FromResult<IAppHostServerProject>(new FakeSucceedingAppHostServerProject(path)) 1526Task.FromResult<IAppHostServerProject>(new FakeSucceedingAppHostServerProject(path)) 1652Task.FromResult<IAppHostServerProject>(new FakeSucceedingAppHostServerProject(appPath)) 1741Task.FromResult<IAppHostServerProject>(new FakeSucceedingAppHostServerProject(appPath))
Scaffolding\ChannelReseedTests.cs (2)
83CreateAsyncCallback = (_, _) => Task.FromResult<IAppHostServerProject>(appHostServerProject) 120Task.FromResult<IAppHostServerProject>(new FakeSucceedingAppHostServerProject(path))
Templating\JavaStarterScaffoldTests.cs (1)
136Task.FromResult<IAppHostServerProject>(new FakeFailingAppHostServerProject(path))
TestServices\FakeAppHostServerSession.cs (1)
106IAppHostServerProject appHostServerProject,
TestServices\FakeFailingAppHostServerProject.cs (1)
10/// <see cref="IAppHostServerProject"/> whose <see cref="PrepareAsync"/> returns failure so
TestServices\FakeSucceedingAppHostServerProject.cs (1)
10/// <see cref="IAppHostServerProject"/> whose <see cref="PrepareAsync"/> returns success.
TestServices\TestAppHostServerProjectFactory.cs (3)
10public Func<string, CancellationToken, Task<IAppHostServerProject>>? CreateAsyncCallback { get; set; } 14public Task<IAppHostServerProject> CreateAsync(string appPath, CancellationToken cancellationToken = default) 17public Task<IAppHostServerProject> CreateAsync(string appPath, string? restoreRootConfigDirectory, CancellationToken cancellationToken)