예제 #1
0
 ///GENMHASH:F7734222FF39440A50483317E5DF8156:998FF6187B952D74EE89FFECAAB847A3
 public WebAppImpl WithBuiltInImage(RuntimeStack runtimeStack)
 {
     EnsureLinuxPlan();
     CleanUpContainerSettings();
     if (SiteConfig == null)
     {
         SiteConfig = new SiteConfigResourceInner();
     }
     SiteConfig.LinuxFxVersion = string.Format("{0}|{1}", runtimeStack.Stack(), runtimeStack.Version());
     if (runtimeStack.Stack().Equals("NODE"))
     {
         SiteConfig.NodeVersion = runtimeStack.Version();
     }
     if (runtimeStack.Stack().Equals("PHP"))
     {
         SiteConfig.PhpVersion = runtimeStack.Version();
     }
     if (runtimeStack.Stack().Equals("DOTNETCORE"))
     {
         SiteConfig.NetFrameworkVersion = runtimeStack.Version();
     }
     return(this);
 }
 /// <summary>
 /// Specifies the docker container image to be a built in one.
 /// </summary>
 /// <param name="runtimeStack">The runtime stack installed on the image.</param>
 /// <return>The next stage of the definition.</return>
 WebApp.Definition.IWithCreate WebApp.Definition.IWithDockerContainerImage.WithBuiltInImage(RuntimeStack runtimeStack)
 {
     return(this.WithBuiltInImage(runtimeStack));
 }
 /// <summary>
 /// Specifies the docker container image to be a built in one.
 /// </summary>
 /// <param name="runtimeStack">The runtime stack installed on the image.</param>
 /// <return>The next stage of the web app update.</return>
 WebApp.Update.IUpdate WebApp.Update.IWithDockerContainerImage.WithBuiltInImage(RuntimeStack runtimeStack)
 {
     return(this.WithBuiltInImage(runtimeStack));
 }