Exemplo n.º 1
0
 public SampleApi(SampleSystem system)
 {
     Container      = system.System.AddContainer("Sample API", "Sample API", "ASP.NET");
     Infrastructure = new WebAppService
     {
         Name = "sampleapi"
     };
 }
Exemplo n.º 2
0
        public SampleWebApplication(SampleSystem system, SampleApi api)
        {
            Container = system.System.AddContainer("Sample", "Sample", "ASP.NET");
            Container.Uses(api.Container, "loads data from");

            Infrastructure = new WebAppService
            {
                Name = "sample"
            };

            Infrastructure.Settings.Add(new AppServiceSetting
            {
                Name  = "apiUrl",
                Value = api.Infrastructure.Url
            });
        }