internal static Utilities.WebHostingPlan ToWebHostingPlan(this Management.WebSites.Models.WebHostingPlanGetResponse plan)
 {
     return(new Utilities.WebHostingPlan
     {
         Name = plan.Name,
         CurrentNumberOfWorkers = plan.CurrentNumberOfWorkers,
         CurrentWorkerSize = plan.CurrentWorkerSize.HasValue
                 ? new Utilities.WorkerSizeOptions?((Utilities.WorkerSizeOptions)(int) plan.CurrentWorkerSize.Value)
                 : null,
         WorkerSize = plan.WorkerSize.HasValue
                 ? new Utilities.WorkerSizeOptions?((Utilities.WorkerSizeOptions)(int) plan.WorkerSize.Value)
                 : null,
         Status = (Utilities.StatusOptions)plan.Status,
         NumberOfWorkers = plan.NumberOfWorkers,
         SKU = plan.SKU
     });
 }
Beispiel #2
0
 internal static Utilities.WebHostingPlan ToWebHostingPlan(this Management.WebSites.Models.WebHostingPlanGetResponse plan)
 {
     return(ToWebHostingPlan(plan.WebHostingPlan, webSpace: null));
 }