public static IServiceCollection AddDFrameProfiler(this IServiceCollection services, DFrameProfilerOption option)
 {
     services.AddSingleton <DFrameProfilerOption>(option);
     services.AddScoped <IDFrameProfiler, DFrameProfiler>();
     return(services);
 }
Example #2
0
 public DFrameProfiler(DFrameProfilerContext context, DFrameProfilerOption option)
 {
     _context = context;
     _option  = option;
 }