/// <summary> /// Adds a document specification to the context /// </summary> /// <param name="docSpec">Specification to add</param> private void AddDocSpecToContext(IDocumentSpec docSpec) { IConfigurePipelineContext ctxt = (IConfigurePipelineContext) Context; ctxt.AddDocSpecByType(docSpec.DocType, docSpec); // Pipelines referencing local schemas in the same // assembly don't have use the assembly qualified name // of the schema when trying to find it. ctxt.AddDocSpecByName(docSpec.DocSpecStrongName, docSpec); ctxt.AddDocSpecByName(docSpec.DocSpecName, docSpec); }
/// <summary> /// Enables transactional support for the pipeline /// execution, so that the pipeline context /// returns a valid transaction /// </summary> /// <returns>An object to control the transaction lifetime and result</returns> public TransactionControl EnableTransactions() { IConfigurePipelineContext ctxt = (IConfigurePipelineContext)_pipelineContext; return(ctxt.EnableTransactionSupport()); }