Example #1
0
        public override IEnumerable <Expression> Express(ref PipelineBuilder builder)
        {
            var expressions = builder.Express();

            return(builder.LifetimeManager switch
            {
                SynchronizedLifetimeManager manager => SynchronizedLifetimeExpression(manager, expressions),
                PerResolveLifetimeManager _ => PerResolveLifetimeExpression(expressions),
                _ => expressions
            });
Example #2
0
        public override ResolveDelegate <PipelineContext>?Build(ref PipelineBuilder builder)
        {
            ResolveDelegate <PipelineContext>?pipeline = builder.Pipeline();

            Debug.Assert(null != pipeline);

            return(builder.LifetimeManager switch
            {
                SynchronizedLifetimeManager manager => SynchronizedLifetimeResolution(manager, pipeline),
                PerResolveLifetimeManager _ => PerResolveLifetimeResolution(pipeline),
                _ => pipeline
            });