Beispiel #1
0
        /// <summary>
        /// See interface docs.
        /// </summary>
        /// <param name="pipelineBuilder"></param>
        public void ConfigureCustomPipeline(IPipelineBuilder pipelineBuilder)
        {
            if (_Pipeline != null)
            {
                throw new InvalidOperationException($"You cannot configure an {nameof(ILoopbackHost)} more than once");
            }

            var environment = Factory.Resolve <IPipelineBuilderEnvironment>();

            environment.Properties[ApplicationStartupKey.Version]  = Constants.Version;
            environment.Properties[ApplicationStartupKey.HostType] = HostType;

            _Pipeline = pipelineBuilder.CreatePipeline(environment);
        }
Beispiel #2
0
 public void CreatePipeline_Throws_If_Passed_Null()
 {
     _PipelineBuilder.CreatePipeline(null);
 }