Пример #1
0
        public void Post(OrganizeMovie request)
        {
            var task = _service.PerformMovieOrganization(new MovieFileOrganizationRequest
            {
                ResultId     = request.Id,
                Name         = request.MovieName,
                Year         = request.MovieYear,
                TargetFolder = request.TargetFolder
            });

            // Wait 2s for exceptions that may occur and would be automatically forwarded to the client for immediate error display
            task.Wait(2000);
        }
        public void Post(OrganizeMovie request)
        {
            var task = _service.PerformMovieOrganization(new MovieFileOrganizationRequest
            {
                ResultId = request.Id,
                Name = request.MovieName,
                Year = request.MovieYear,
                TargetFolder = request.TargetFolder
            });

            // Wait 2s for exceptions that may occur and would be automatically forwarded to the client for immediate error display
            task.Wait(2000);
        }