2 instantiations of ManifestPublishingContext
Aspire.Hosting.Tests (2)
Utils\ManifestUtils.cs (2)
28var context = new ManifestPublishingContext(executionContext, Path.Combine(manifestDirectory, "manifest.json"), writer); 44var 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> 17public 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> 33public ManifestPublishingCallbackAnnotation(Func<ManifestPublishingContext, Task>? callback) 41public Func<ManifestPublishingContext, Task>? Callback { get; }
ApplicationModel\ParameterDefault.cs (5)
18public abstract void WriteToManifest(ManifestPublishingContext context); 127public override void WriteToManifest(ManifestPublishingContext context) 132static void WriteBoolIfNotTrue(ManifestPublishingContext context, string propertyName, bool value) 145static void WriteIntIfNotZero(ManifestPublishingContext context, string propertyName, int value) 182public override void WriteToManifest(ManifestPublishingContext context)
ApplicationModel\UserSecretsParameterDefault.cs (1)
37public override void WriteToManifest(ManifestPublishingContext context) => parameterDefault.WriteToManifest(context);
ExecutableResourceBuilderExtensions.cs (1)
79private static async Task WriteExecutableAsDockerfileResourceAsync(ManifestPublishingContext context, ExecutableResource executable, IEnumerable<DockerBuildArg>? buildArgs = null)
Publishing\ManifestPublisher.cs (1)
51var 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> 263public 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> 279public 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> 135public virtual void WriteToManifest(ManifestPublishingContext context)
Aspire.Hosting.Dapr (1)
IDistributedApplicationBuilderExtensions.cs (1)
81private static void WriteDaprComponentResourceToManifest(ManifestPublishingContext context, DaprComponentResource resource)
Aspire.Hosting.Tests (4)
AddParameterTests.cs (1)
333public override void WriteToManifest(ManifestPublishingContext context)
UserSecretsParameterDefaultTests.cs (1)
113public override void WriteToManifest(ManifestPublishingContext context)
Utils\ManifestUtils.cs (2)
28var context = new ManifestPublishingContext(executionContext, Path.Combine(manifestDirectory, "manifest.json"), writer); 44var context = new ManifestPublishingContext(executionContext, Path.Combine(Environment.CurrentDirectory, "manifest.json"), writer);