public OpenRastaProperties(IDictionary <string, object> startupProperties) : base(startupProperties) { Pipeline = new PipelineProperties(startupProperties); Errors = new ErrorProperties(startupProperties); Diagnostics = new DiagnosticsProperties(startupProperties); }
/// <summary> /// Convert <paramref name="pipeline"/> to a <see cref="Microsoft.Azure.Management.DataFactories.Core.Models.Pipeline"/> instance. /// This method should be called only after type is validated, otherwise type-specific logic will break. /// </summary> /// <param name="pipeline"> /// The <see cref="Microsoft.Azure.Management.DataFactories.Core.Models.Pipeline"/> /// instance to convert. /// </param> /// <returns>A <see cref="Microsoft.Azure.Management.DataFactories.Core.Models.Pipeline"/> /// instance equivalent to <paramref name="pipeline"/>.</returns> public override Core.Models.Pipeline ToCoreType(Pipeline pipeline) { Ensure.IsNotNull(pipeline, "pipeline"); Ensure.IsNotNull(pipeline.Properties, "pipeline.Properties"); Ensure.IsNotNull(pipeline.Properties.Activities, "pipeline.Properties.Activities"); PipelineProperties properties = pipeline.Properties; IList <Core.Models.Activity> internalActivities = this.ConvertActivitiesToCoreActivities(pipeline.Properties.Activities); Core.Models.Pipeline internalPipeline = new Core.Models.Pipeline() { Name = pipeline.Name, Properties = new Core.Models.PipelineProperties() { Activities = internalActivities, Description = properties.Description, End = properties.End, HubName = properties.HubName, IsPaused = properties.IsPaused, ProvisioningState = properties.ProvisioningState, RuntimeInfo = properties.RuntimeInfo, Start = properties.Start } }; return(internalPipeline); }
/// <summary> /// Initializes a new instance of the Pipeline class with required /// arguments. /// </summary> public Pipeline(string name, PipelineProperties properties) : this() { Ensure.IsNotNullOrEmpty(name, "name"); Ensure.IsNotNull(properties, "properties"); this.Name = name; this.Properties = properties; }