Пример #1
0
        /// <summary>
        /// Gets the expected test end time
        /// </summary>
        /// <param name="duration">Test duration</param>
        /// <param name="testId">Test Id</param>
        /// <returns>Invokes setEstimatedEndTime method in client side</returns>
        public async Task <Task> GetExpectedEndTime(double duration, int testId)
        {
            var expectedTimeString = await _testConductRepository.GetExpectedTestEndTime(duration, testId);

            return(Clients.Group(ADMIN_GROUP).InvokeAsync("setEstimatedEndTime", expectedTimeString));
        }