public WatchController(IWatchService watchService, IImageService imageService, IOrderService orderService, IRequestContext requestContext) { _watchService = watchService; _imageService = imageService; _orderService = orderService; _requestContext = requestContext; }
private void begin(Object source, EventArgs e) { IWatchService iWatch = ServiceFactory.WatchService; iWatch.Start(); ((HttpApplication)source).Context.Items.Add(Constants.WatchItemName, iWatch); }
public SendAlert(IWatchService watchService, IAlarmService alarmService, IMachineService machineService, IAlarmLogService alarmLogService, INotificationHubConnectionSettings hub) { _hub = hub.Hub; _watchService = watchService; _alarmService = alarmService; _machineService = machineService; _alarmLogService = alarmLogService; }
public WatchController(IWatchService watchService) { if (watchService == null) { throw new ArgumentNullException("watchService"); } _watchService = watchService; }
public Form1() { InitializeComponent(); picScreen.Image = new Bitmap(WIDTH, HEIGHT); _screen = new Screen(picScreen); _logger = new Logger(txtLog); _watchService = new WatchService(_logger, _screen, WIDTH, HEIGHT); DemoCode(); }
private void end(Object source, EventArgs e) { var app = (HttpApplication)source; IWatchService iWatch = (IWatchService)app.Context.Items[Constants.WatchItemName]; if (iWatch != null) { var requestUrl = app.Context.Request.Path; iWatch.Stop(requestUrl); } }
//public override void OnActionExecuting(ActionExecutingContext filterContext) //{ // base.OnActionExecuting(filterContext); //} //public override void OnActionExecuted(ActionExecutedContext filterContext) //{ // base.OnActionExecuted(filterContext); //} public void OnActionExecuting(ActionExecutingContext filterContext) { if (filterContext.IsChildAction) { return; } if (_disabledWatch) { return; } IWatchService iWatch = ServiceFactory.WatchService; iWatch.Start(); filterContext.HttpContext.Items.Add(Constants.WatchItemName, iWatch); }
public void ProcessRequest(HttpContext context) { //write your handler implementation here. var req = context.Request; var response = context.Response; using (HtmlTextWriter writer = new HtmlTextWriter(response.Output)) { writer.Write("<!DOCTYPE html>"); writer.Write("<html>"); writer.Write("<head>"); writer.Write("<meta charset=\"utf - 8\" /><meta name=\"viewport\" content=\"width = device - width, initial - scale = 1.0\">"); writer.Write("<title>Kaizen Trace Report</title>"); writer.Write("</head>"); writer.Write("<body>"); if (ApplicationStartCode.DisableKaizenMvcTrace) { writer.Write("<h2>Kaizen Mvc Trace is disabled. Please contact administrator..</h2>"); } else { iWatch = ServiceFactory.WatchService; ReportType reportType; if (!Enum.TryParse <ReportType>(req.QueryString["reportType"], out reportType) || !Enum.IsDefined(typeof(ReportType), reportType)) { reportType = ReportType.Milliseconds; // default reportType } this.GenerateHtmlTabularReport(writer, reportType); } writer.Write("</body>"); writer.Write("</html>"); } response.End(); //if(req.HttpMethod.ToUpper() == "POST") //{ // var status = req["status"]; // if (status != null) // { // ActionFilter.IsDisabled = status == "enabled" ? false : true; // } // response.Redirect(req.Path); //} }
public CartController(IWatchService watchService, IOrderService orderService, IUserService userService) { _watchService = watchService; _orderService = orderService; _userService = userService; }
public OrderService(IOrderRepository orderRepository, IOrderWatchRepository orderWatchRepository, IWatchService watchService) { _orderRepository = orderRepository; _orderWatchRepository = orderWatchRepository; _watchService = watchService; }
public NotificationsController(IWatchService watchService) { watch = watchService; }
public SyncService(IWatchService watchService) { _watchService = watchService; }
public AnotherCart(IWatchService watchService) { _watchService = watchService; }
public AdminController(IWatchService watchService, IImageService imageService, IOrderService orderService) { _watchService = watchService; _imageService = imageService; _orderService = orderService; }
public NavController(IWatchService watchService, IAccountService accountService) { _watchService = watchService; _accountService = accountService; }
public IndexModel(ILogger <IndexModel> logger, IWatchService watchService) { _logger = logger; _watchService = watchService; }
public SubscribeToMachine(IWatchService watchService, IMachineService machineService) { _watchservice = watchService; _machineService = machineService; }
public GetAlarmSubscriptions(IWatchService watchService) { _watchService = watchService; }
public DeleteMachineSubscription(IWatchService watchService) { _watchService = watchService; }
public WatchControllerBuilder() { _watchService = new Mock <IWatchService>().Object; }
public WatchControllerBuilder WithWatchService(IWatchService watchService) { _watchService = watchService; return(this); }
public WatchController(IWatchService watchService, IMapper mapper) { _watchService = watchService; _mapper = mapper; }
public SubscribeToAlarm(IWatchService watchService, IAlarmService alarmService) { _watchservice = watchService; _alarmservice = alarmService; }
public WatchCartApp(IWatchService watchService, IOrderRepository repository) { this._watchService = watchService; this._repository = repository; }
public DeleteAlarmSubscription(IWatchService watchService) { _watchService = watchService; }
public GetMachineSubscriptions(IWatchService watchService) { _watchService = watchService; }