Skip to content

Add RunWith/PublishWith extensions for all With methods #8

Description

@DamianEdwards

This has been started but needs to be completed. Idea is that the pattern becomes WithXXX methods apply in all execution modes, whereas RunWithXXX/PublishWithXXX only apply in the associated execution mode, matching the pattern established for AsXXX/RunAsXXX/PublishAsXXX methods.

var cache = builder.AddRedis("cache")
    .RunWithBindMount("./cache-data", "/data")
    .PublishWithVolume("cache-data", "/data")
    .WithPersistence();

var cacheParameter = builder.AddParameter("cache-param");

builder.AddProject<Projects.WebApp>("webapp")
    .RunWithReference(cache)
    .PublishWithParameter(cacheParameter);

Should do it for the resource-specific WithDataVolume/WithDataBindMount, etc. methods too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions