Skip to content
Discussion options

You must be logged in to vote

I was able to find a light-weight solution that doesn't crash. Just in case someone else has a similar need.

internal interface IProjectOrContainerResource : IResourceWithEnvironment, IResourceWithArgs, IResourceWithEndpoints, IResourceWithWaitSupport, IComputeResource;
internal class ProjectOrContainerResourceBuilder<T>(IResourceBuilder<T> builder) : IResourceBuilder<IProjectOrContainerResource>
    where T : IResourceWithEnvironment, IResourceWithArgs, IResourceWithEndpoints, IResourceWithWaitSupport, IComputeResource
{
    private IResourceBuilder<T> _builder = builder;

    public IResourceBuilder<IProjectOrContainerResource> WithAnnotation<TAnnotation>(
        TAnnotation annotation,

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@davidfowl
Comment options

@Falco20019
Comment options

@KennethHoff
Comment options

@Falco20019
Comment options

Comment options

You must be logged in to vote
2 replies
@Falco20019
Comment options

@jrunestone
Comment options

Answer selected by Falco20019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants