public MutablePipeline <T> Append(IBundleProcessor <T> step) { pipelineModifiers.Add( steps => steps.Concat(new[] { step }) ); return(this); }
public MutablePipeline <T> Replace <TStep>(IBundleProcessor <T> newStep) where TStep : IBundleProcessor <T> { pipelineModifiers.Add( steps => steps.Select( step => step is TStep ? newStep : step ) ); return(this); }
public MutablePipeline <T> InsertBefore <TStep>(IBundleProcessor <T> newStep) where TStep : IBundleProcessor <T> { pipelineModifiers.Add( steps => steps.SelectMany( step => step is TStep ? new[] { newStep, step } : new[] { step } ) ); return(this); }
public void SetDefaultBundleProcessor <T>(IBundleProcessor <T> processor) where T : Bundle { defaultBundleProcessors[typeof(T)] = processor; }