2 instantiations of ManifestPublishingContext
Aspire.Hosting.Tests (2)
Utils\ManifestUtils.cs (2)
28
var context = new
ManifestPublishingContext
(executionContext, Path.Combine(manifestDirectory, "manifest.json"), writer);
44
var context = new
ManifestPublishingContext
(executionContext, Path.Combine(Environment.CurrentDirectory, "manifest.json"), writer);
24 references to ManifestPublishingContext
Aspire.Hosting (17)
ApplicationModel\ManifestPublishingCallbackAnnotation.cs (5)
16
/// <param name="callback">A callback which provides access to <see cref="
ManifestPublishingContext
"/> which can be used for controlling JSON output into the manifest.</param>
17
public ManifestPublishingCallbackAnnotation(Action<
ManifestPublishingContext
>? callback)
32
/// <param name="callback">A callback which provides access to <see cref="
ManifestPublishingContext
"/> which can be used for controlling JSON output into the manifest.</param>
33
public ManifestPublishingCallbackAnnotation(Func<
ManifestPublishingContext
, Task>? callback)
41
public Func<
ManifestPublishingContext
, Task>? Callback { get; }
ApplicationModel\ParameterDefault.cs (5)
18
public abstract void WriteToManifest(
ManifestPublishingContext
context);
127
public override void WriteToManifest(
ManifestPublishingContext
context)
132
static void WriteBoolIfNotTrue(
ManifestPublishingContext
context, string propertyName, bool value)
145
static void WriteIntIfNotZero(
ManifestPublishingContext
context, string propertyName, int value)
182
public override void WriteToManifest(
ManifestPublishingContext
context)
ApplicationModel\UserSecretsParameterDefault.cs (1)
37
public override void WriteToManifest(
ManifestPublishingContext
context) => parameterDefault.WriteToManifest(context);
ExecutableResourceBuilderExtensions.cs (1)
79
private static async Task WriteExecutableAsDockerfileResourceAsync(
ManifestPublishingContext
context, ExecutableResource executable, IEnumerable<DockerBuildArg>? buildArgs = null)
Publishing\ManifestPublisher.cs (1)
51
var
context = new ManifestPublishingContext(_executionContext, manifestPath, jsonWriter, cancellationToken);
ResourceBuilderExtensions.cs (4)
261
/// <param name="callback">Callback method which takes a <see cref="
ManifestPublishingContext
"/> which can be used to inject JSON into the manifest.</param>
263
public static IResourceBuilder<T> WithManifestPublishingCallback<T>(this IResourceBuilder<T> builder, Action<
ManifestPublishingContext
> callback) where T : IResource
277
/// <param name="callback">Callback method which takes a <see cref="
ManifestPublishingContext
"/> which can be used to inject JSON into the manifest.</param>
279
public static IResourceBuilder<T> WithManifestPublishingCallback<T>(this IResourceBuilder<T> builder, Func<
ManifestPublishingContext
, Task> callback) where T : IResource
Aspire.Hosting.Azure (2)
AzureBicepResource.cs (2)
134
/// <param name="context">The <see cref="
ManifestPublishingContext
"/>.</param>
135
public virtual void WriteToManifest(
ManifestPublishingContext
context)
Aspire.Hosting.Dapr (1)
IDistributedApplicationBuilderExtensions.cs (1)
81
private static void WriteDaprComponentResourceToManifest(
ManifestPublishingContext
context, DaprComponentResource resource)
Aspire.Hosting.Tests (4)
AddParameterTests.cs (1)
333
public override void WriteToManifest(
ManifestPublishingContext
context)
UserSecretsParameterDefaultTests.cs (1)
113
public override void WriteToManifest(
ManifestPublishingContext
context)
Utils\ManifestUtils.cs (2)
28
var
context = new ManifestPublishingContext(executionContext, Path.Combine(manifestDirectory, "manifest.json"), writer);
44
var
context = new ManifestPublishingContext(executionContext, Path.Combine(Environment.CurrentDirectory, "manifest.json"), writer);