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