/// <summary>
 /// AGS Service configuration copy ctor
 /// </summary>
 public RestServiceConfiguration(RestServiceConfiguration configuration)
 {
     if (configuration.Behaviors != null)
     {
         this.Behaviors = new List <RestServiceBehaviorConfiguration>(configuration.Behaviors.Select(o => new RestServiceBehaviorConfiguration(o)));
     }
     if (configuration.Endpoints != null)
     {
         this.Endpoints = new List <RestEndpointConfiguration>(configuration.Endpoints?.Select(o => new RestEndpointConfiguration(o)));
     }
     this.Name        = configuration.Name;
     this.ServiceType = configuration.ServiceType;
 }
 /// <summary>
 /// Remove rest service task
 /// </summary>
 public UnInstallRestServiceTask(IFeature owner, RestServiceConfiguration configuration, Func <bool> queryValidateFunc)
 {
     this.Feature             = owner;
     this.m_configuration     = configuration;
     this.m_queryValidateFunc = queryValidateFunc;
 }