Ejemplo n.º 1
0
        protected virtual void FinishPipeline(ICommunicationContext context)
        {
            context.Request.Entity?.Dispose();

            context.Response.Entity?.Dispose();

            PipelineLog.WriteInfo("Pipeline finished.");
        }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
 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.");
 }
Ejemplo n.º 4
0
 protected virtual void FinishPipeline(ICommunicationContext context)
 {
     PipelineLog.WriteInfo("Pipeline finished.");
 }