9 implementations of IAppHostServerProject
aspire (2)
Projects\DotNetBasedAppHostServerProject.cs (1)
25
internal sealed class DotNetBasedAppHostServerProject :
IAppHostServerProject
Projects\PrebuiltAppHostServer.cs (1)
36
internal sealed partial class PrebuiltAppHostServer :
IAppHostServerProject
, IDisposable
Aspire.Cli.Tests (7)
Commands\Sdk\SdkExportCommandTests.cs (1)
437
private sealed class CapturingAppHostServerProject :
IAppHostServerProject
Projects\AppHostServerSessionTests.cs (3)
656
private sealed class RecordingAppHostServerProject :
IAppHostServerProject
707
private sealed class LongRunningAppHostServerProject :
IAppHostServerProject
757
private sealed class ThrowingAppHostServerProject :
IAppHostServerProject
, IDisposable
Scaffolding\ChannelReseedTests.cs (1)
135
private sealed class CapturingAppHostServerProject(string appDirectoryPath) :
IAppHostServerProject
TestServices\FakeFailingAppHostServerProject.cs (1)
16
internal sealed class FakeFailingAppHostServerProject(string appDirectoryPath) :
IAppHostServerProject
, IDisposable
TestServices\FakeSucceedingAppHostServerProject.cs (1)
15
internal sealed class FakeSucceedingAppHostServerProject(string appDirectoryPath) :
IAppHostServerProject
, IDisposable
49 references to IAppHostServerProject
aspire (23)
Commands\Sdk\SdkDumpCommand.cs (3)
164
private Task<
IAppHostServerProject
> CreateCapabilityScannerProjectAsync(string tempDir, CancellationToken cancellationToken)
181
var
appHostServerProject = await CreateCapabilityScannerProjectAsync(tempDir, cancellationToken);
280
var
appHostServerProject = await CreateCapabilityScannerProjectAsync(tempDir, cancellationToken);
Commands\Sdk\SdkExportCommand.cs (1)
187
var
appHostServerProject = await _appHostServerProjectFactory.CreateAsync(
Commands\Sdk\SdkGenerateCommand.cs (1)
119
var
appHostServerProject = await _appHostServerProjectFactory.CreateAsync(tempDir, cancellationToken);
Projects\AppHostServerProject.cs (4)
19
Task<
IAppHostServerProject
> CreateAsync(string appPath, CancellationToken cancellationToken = default);
20
Task<
IAppHostServerProject
> CreateAsync(string appPath, string? restoreRootConfigDirectory, CancellationToken cancellationToken);
38
public Task<
IAppHostServerProject
> CreateAsync(string appPath, CancellationToken cancellationToken = default)
41
public 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
31
private readonly
IAppHostServerProject
_project;
62
IAppHostServerProject
project,
482
IAppHostServerProject
appHostServerProject,
Projects\GuestAppHostProject.cs (6)
294
IAppHostServerProject
appHostServerProject,
322
var
appHostServerProject = await _appHostServerProjectFactory.CreateAsync(directory.FullName, cancellationToken);
401
IAppHostServerProject
appHostServerProject,
522
var
appHostServerProject = await _appHostServerProjectFactory.CreateAsync(directory.FullName, cancellationToken);
1339
var
appHostServerProject = await _appHostServerProjectFactory.CreateAsync(directory.FullName, cancellationToken);
1929
var
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
44
/// Controls how <see cref="
IAppHostServerProject
.RunAsync"/> spawns and tears down the server child.
Projects\IAppHostServerSession.cs (1)
88
IAppHostServerProject
appHostServerProject,
Scaffolding\ScaffoldingService.cs (1)
148
var
appHostServerProject = await _appHostServerProjectFactory.CreateAsync(scaffoldDirectory.FullName, cancellationToken);
Aspire.Cli.Tests (26)
Commands\NewCommandTemplateConfigPersistenceTests.cs (2)
269
Task.FromResult<
IAppHostServerProject
>(new FakeSucceedingAppHostServerProject(path))
385
Task.FromResult<
IAppHostServerProject
>(new FakeSucceedingAppHostServerProject(path))
Commands\Sdk\SdkExportCommandTests.cs (1)
372
IAppHostServerProject
appHostServerProject,
Commands\SdkDumpCommandTests.cs (1)
268
return Task.FromResult<
IAppHostServerProject
>(new FakeFailingAppHostServerProject(appPath));
Projects\AppHostServerSessionTests.cs (1)
616
IAppHostServerProject
project,
Projects\GuestAppHostProjectTests.cs (12)
222
CreateAsyncCallback = (path, _) => Task.FromResult<
IAppHostServerProject
>(new FakeSucceedingAppHostServerProject(path))
1174
CreateAsyncCallback = (path, _) => Task.FromResult<
IAppHostServerProject
>(new FakeSucceedingAppHostServerProject(path))
1238
CreateAsyncCallback = (path, _) => Task.FromResult<
IAppHostServerProject
>(new FakeFailingAppHostServerProject(path))
1381
Task.FromResult<
IAppHostServerProject
>(new FakeFailingAppHostServerProject(appPath))
1415
Task.FromResult<
IAppHostServerProject
>(new FakeFailingAppHostServerProject(appPath))
1606
/// fake <see cref="
IAppHostServerProject
"/> that returns a failed prepare result so
1643
Task.FromResult<
IAppHostServerProject
>(new FakeFailingAppHostServerProject(path))
1741
Task.FromResult<
IAppHostServerProject
>(new FakeSucceedingAppHostServerProject(path))
1819
Task.FromResult<
IAppHostServerProject
>(new FakeSucceedingAppHostServerProject(path))
1859
Task.FromResult<
IAppHostServerProject
>(new FakeSucceedingAppHostServerProject(path))
1996
Task.FromResult<
IAppHostServerProject
>(new FakeSucceedingAppHostServerProject(appPath))
2085
Task.FromResult<
IAppHostServerProject
>(new FakeSucceedingAppHostServerProject(appPath))
Scaffolding\ChannelReseedTests.cs (2)
83
CreateAsyncCallback = (_, _) => Task.FromResult<
IAppHostServerProject
>(appHostServerProject)
122
Task.FromResult<
IAppHostServerProject
>(new FakeSucceedingAppHostServerProject(path))
Templating\JavaStarterScaffoldTests.cs (1)
136
Task.FromResult<
IAppHostServerProject
>(new FakeFailingAppHostServerProject(path))
TestServices\FakeAppHostServerSession.cs (1)
111
IAppHostServerProject
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)
10
public Func<string, CancellationToken, Task<
IAppHostServerProject
>>? CreateAsyncCallback { get; set; }
14
public Task<
IAppHostServerProject
> CreateAsync(string appPath, CancellationToken cancellationToken = default)
17
public Task<
IAppHostServerProject
> CreateAsync(string appPath, string? restoreRootConfigDirectory, CancellationToken cancellationToken)