public DashboardMiddleware(RequestDelegate next,
                            IGrainFactory grainFactory,
                            IOptions <DashboardOptions> options,
                            DashboardLogger logger)
 {
     this.options = options;
     this.logger  = logger;
     this.next    = next;
     client       = new DashboardClient(grainFactory);
 }
示例#2
0
 public DashboardMiddleware(RequestDelegate next,
                            IGrainFactory grainFactory,
                            IExternalDispatcher dispatcher,
                            IOptions <DashboardOptions> options,
                            DashboardLogger logger)
 {
     this.grainFactory = grainFactory;
     this.dispatcher   = dispatcher;
     this.options      = options;
     this.logger       = logger;
     this.next         = next;
 }
 public DashboardMiddleware(RequestDelegate next,
                            IGrainFactory grainFactory,
                            IAssetProvider assetProvider,
                            IOptions <DashboardOptions> options,
                            DashboardLogger logger)
 {
     this.options       = options;
     this.logger        = logger;
     this.next          = next;
     this.grainFactory  = grainFactory;
     this.assetProvider = assetProvider;
 }
 public TraceWriter(DashboardLogger traceListener, HttpContext context)
 {
     this.traceListener = traceListener;
     this.traceListener.Add(Write);
     this.context = context;
 }