3 writes to ValidationCallback
Aspire.Hosting (1)
RequiredCommandResourceExtensions.cs (1)
77ValidationCallback = validationCallback,
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
133ValidationCallback = ValidateDevTunnelCliVersionAsync
Aspire.Hosting.Tests (1)
RequiredCommandAnnotationTests.cs (1)
48ValidationCallback = callback
9 references to ValidationCallback
Aspire.Hosting (3)
ApplicationModel\RequiredCommandValidator.cs (3)
62var cacheKey = new CommandValidationCacheKey(command, annotation.ValidationCallback); 87if (resolved is not null && annotation.ValidationCallback is not null) 90var result = await annotation.ValidationCallback(context).ConfigureAwait(false);
Aspire.Hosting.DotnetTool.Tests (1)
AddDotnetToolTests.cs (1)
430Assert.NotNull(annotation.ValidationCallback);
Aspire.Hosting.Tests (5)
RequiredCommandAnnotationTests.cs (5)
51Assert.NotNull(annotation.ValidationCallback); 52Assert.Same(callback, annotation.ValidationCallback); 66Assert.Null(annotation.ValidationCallback); 80Assert.Null(annotation.ValidationCallback); 96Assert.NotNull(annotation.ValidationCallback);