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