Exemple #1
0
 public override ResolveDelegate <BuilderContext>?Build(ref PipelineBuilder builder)
 {
     return(builder.Registration.LifetimeManager switch
     {
         null => TransientLifetime(ref builder),
         TransientLifetimeManager _ => TransientLifetime(ref builder),
         PerResolveLifetimeManager _ => PerResolveLifetime(ref builder),
         ILifetimeManagerAsync _ => AsyncLifetime(ref builder),
         _ => DefaultLifetime(ref builder)
     });