public override void Process(GetSourceFilePipelineArgs args) { if (File.Exists(args.ConfigLocation)) { args.Path = args.ConfigLocation; args.AbortPipeline(); } }
public override void Process(GetSourceFilePipelineArgs args) { if (string.IsNullOrEmpty(args.ConfigLocation)) { Log.Error("ZipInfo.Pipelines.GetSourceFile: Provider configuration \"dataFileLocation\" attribute is missing.", typeof(ValidateConfig)); args.AbortPipeline(); } }
public override void Process(GetSourceFilePipelineArgs args) { var loc = HttpContext.Current.Request.MapPath("~/App_Data/{0}".FormatWith(args.ConfigLocation)); if (File.Exists(loc)) { args.Path = loc; args.AbortPipeline(); } }
public static GetSourceFilePipelineArgs Run(string configLocation) { var args = new GetSourceFilePipelineArgs() { ConfigLocation = configLocation }; CorePipeline.Run("zipCode.getSourceFilePath", args); return(args); }
public override void Process(GetSourceFilePipelineArgs args) { var loc = "{0}{1}".FormatWith( StringUtil.EnsurePostfix('\\', Settings.DataFolder), args.ConfigLocation); if (File.Exists(loc)) { args.Path = loc; args.AbortPipeline(); } }