2 implementations of ITenantResource
Aspire.Hosting.Azure (1)
Provisioning\Internal\DefaultArmClientProvider.cs (1)
111
private sealed class DefaultTenantResource(TenantResource tenantResource) :
ITenantResource
Aspire.Hosting.Azure.Tests (1)
ProvisioningTestHelpers.cs (1)
435
internal sealed class TestTenantResource :
ITenantResource
15 references to ITenantResource
Aspire.Hosting.Azure (8)
Provisioning\Internal\DefaultArmClientProvider.cs (4)
29
public async Task<(ISubscriptionResource subscription,
ITenantResource
tenant)> GetSubscriptionAndTenantAsync(CancellationToken cancellationToken = default)
34
ITenantResource
? tenantResource = null;
53
public async Task<IEnumerable<
ITenantResource
>> GetAvailableTenantsAsync(CancellationToken cancellationToken = default)
55
var tenants = new List<
ITenantResource
>();
Provisioning\Internal\IProvisioningServices.cs (2)
72
Task<(ISubscriptionResource subscription,
ITenantResource
tenant)> GetSubscriptionAndTenantAsync(CancellationToken cancellationToken = default);
77
Task<IEnumerable<
ITenantResource
>> GetAvailableTenantsAsync(CancellationToken cancellationToken = default);
Provisioning\ProvisioningContext.cs (2)
16
ITenantResource
tenant,
24
public
ITenantResource
Tenant => tenant;
Aspire.Hosting.Azure.Tests (7)
ProvisioningTestHelpers.cs (7)
43
ITenantResource
? tenant = null,
198
public Task<(ISubscriptionResource subscription,
ITenantResource
tenant)> GetSubscriptionAndTenantAsync(CancellationToken cancellationToken = default)
210
return Task.FromResult<(ISubscriptionResource,
ITenantResource
)>((subscription, tenant));
213
public Task<IEnumerable<
ITenantResource
>> GetAvailableTenantsAsync(CancellationToken cancellationToken = default)
215
var tenants = new List<
ITenantResource
>
219
return Task.FromResult<IEnumerable<
ITenantResource
>>(tenants);
433
/// Test implementation of <see cref="
ITenantResource
"/>.