예제 #1
0
        public async Task <SignalRServerResponse> RequestSingleImageCapture()
        {
            var response = new SignalRServerResponse();

            await Clients.Group(Cam_GROUP).SendAsync(nameof(RequestSingleImageCapture));

            return(response);
        }
예제 #2
0
        public async Task <SignalRServerResponse> UpdateProgress(string stepName, int currentStep, int totalSteps)
        {
            var response = new SignalRServerResponse();

            await Clients.Group(SPECTATORS_GROUP).SendAsync(nameof(UpdateProgress), new
            {
                StepName    = stepName,
                CurrentStep = currentStep,
                TotalSteps  = totalSteps
            });

            return(response);
        }