Ejemplo n.º 1
0
 public override void Configure(ComposeResourceBuilder builder)
 {
     builder.AddContainer <MongoDbContainer>("mongo");
     builder.AddContainer <WebApp>("webapp")
     .AddLink("mongo", new EnvironmentVariableMapping(
                  "Sample:Database:ConnectionString", "#CONNECTIONSTRING_INTERNAL#"
                  ));
 }
Ejemplo n.º 2
0
        public override void Configure(ComposeResourceBuilder builder)
        {
            builder.AddGlobalEnvironmentVariable("FOO", "BAR");
            builder.AddContainer <MongoDefaultOptions>("mongo");
            builder.AddContainer <SampleAppOptions>("api")
            .AddLink("mongo", new EnvironmentVariableMapping(
                         "Sample:Database:ConnectionString",
                         "#CONNECTIONSTRING#"
                         ));

            builder.AddContainer <SampleAppOptions>("ui")
            .AddLink("api", new EnvironmentVariableMapping(
                         "Sample:Api:Url", "#HTTPURL#"
                         ));
        }