public ServiceDefinition( String serviceType, Guid identifier, String displayName, String relativePath, RelativeToSetting relativeToSetting, String description, String toolId, List <LocationMapping> locationMappings = null, Guid serviceOwner = new Guid()) { ServiceType = serviceType; Identifier = identifier; DisplayName = displayName; RelativePath = relativePath; RelativeToSetting = relativeToSetting; Description = description; ToolId = toolId; if (locationMappings == null) { locationMappings = new List <LocationMapping>(); } LocationMappings = locationMappings; ServiceOwner = serviceOwner; Properties = new PropertiesCollection(); Status = ServiceStatus.Active; }
/// <summary> /// Gets the wrapper. /// </summary> /// <param name="src">The source.</param> /// <returns>IRelativeToSetting.</returns> public static IRelativeToSetting GetWrapper(RelativeToSetting src) { return(EnumTransform <IRelativeToSetting, RelativeToSetting> .Change(src)); }