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.
This has been started but needs to be completed. Idea is that the pattern becomes
WithXXXmethods apply in all execution modes, whereasRunWithXXX/PublishWithXXXonly apply in the associated execution mode, matching the pattern established forAsXXX/RunAsXXX/PublishAsXXXmethods.Should do it for the resource-specific
WithDataVolume/WithDataBindMount, etc. methods too.