コード例 #1
0
 /// <summary>
 /// With deployment manifest
 /// </summary>
 /// <param name="deployment"></param>
 /// <param name="manifest"></param>
 /// <returns></returns>
 public static IEdgeDeployment WithManifest(this IEdgeDeployment deployment,
                                            EdgeDeploymentManifestModel manifest)
 {
     if (manifest.Modules != null)
     {
         foreach (var module in manifest.Modules)
         {
             deployment.WithModule(module);
         }
     }
     if (manifest.Routes != null)
     {
         foreach (var route in manifest.Routes)
         {
             deployment.WithRoute(route);
         }
     }
     return(deployment);
 }
コード例 #2
0
 /// <summary>
 /// Apply manifest
 /// </summary>
 /// <param name="deployment"></param>
 /// <param name="manifest"></param>
 /// <returns></returns>
 public static Task ApplyAsync(this IEdgeDeployment deployment,
                               EdgeDeploymentManifestModel manifest)
 {
     return(deployment.WithManifest(manifest).ApplyAsync());
 }