Esempio n. 1
0
        public static void UseMiniProfilerIf <TUser>(this TnTCqrsBuilderOptions options, Func <TUser, bool> condition)
        {
            MiniProfilerSwitch <TUser> mps = new MiniProfilerSwitch <TUser>();

            mps.Condition = condition;
            options.Services.AddSingleton(mps);
        }
 public MiniProfilerPipelineStepExecutor(IEnumerable <IPipelineStep <TCommand, TUser> > orderedPipelineSteps, MiniProfilerSwitch <TUser> miniProfilerSwitch) : base(orderedPipelineSteps)
 {
     this.miniProfilerSwitch = miniProfilerSwitch;
     foreach (var orderedPipelineStep in orderedPipelineSteps.Reverse())
     {
         list.Add(orderedPipelineStep);
     }
 }