protected virtual void FinishPipeline(ICommunicationContext context) { context.Request.Entity?.Dispose(); context.Response.Entity?.Dispose(); PipelineLog.WriteInfo("Pipeline finished."); }
void LogContributorCallChainCreated(IEnumerable <ContributorCall> callGraph) { PipelineLog.WriteInfo("Contributor call chain has been processed and results in the following pipeline:"); int pos = 0; foreach (var contributor in callGraph) { PipelineLog.WriteInfo("{0} {1}", pos++, contributor.ContributorTypeName); } }
public void Initialize() { if (IsInitialized) { return; } using (PipelineLog.Operation(this, "Initializing the pipeline.")) { foreach (var item in _resolver.ResolveAll <IPipelineContributor>()) { PipelineLog.WriteDebug("Initialized contributor {0}.", item.GetType().Name); _contributors.Add(item); } _callGraph = GenerateCallGraph(); } IsInitialized = true; PipelineLog.WriteInfo("Pipeline has been successfully initialized."); }
protected virtual void FinishPipeline(ICommunicationContext context) { PipelineLog.WriteInfo("Pipeline finished."); }