Esempio n. 1
0
        public static bool UpdateExperienceModifiers(int experienceId, int pool, int profile)
        {
            var isSuccesful = false;

            using (_certonaService = new CertonaServiceClient())
            {
                try
                {
                    UserDTO user    = FormsAuthenticationWrapper.User;
                    var     request = new UpdateExperienceModifiersRequest
                    {
                        User         = user,
                        ExperienceID = experienceId,
                        Pool         = pool,
                        Profile      = profile
                    };
                    var response = _certonaService.UpdateExperienceModifiers(request);

                    if (response.Success)
                    {
                        isSuccesful = true;
                    }
                }
                catch (TimeoutException exception)
                {
                    _certonaService.Abort();
                    throw;
                }
                catch (CommunicationException exception)
                {
                    _certonaService.Abort();
                    throw;
                }
            }

            return(isSuccesful);
        }