Example #1
0
        public static void SetSelectedNode(string nodeID, string nodeType, int?classificationID)
        {
            try
            {
                using (_certonaService = new CertonaServiceClient())
                {
                    try
                    {
                        UserDTO user = FormsAuthenticationWrapper.User;
                        var     selectedNodeRequest = new SetSelectedNodeRequest
                        {
                            User        = user,
                            ObjectKey   = nodeType,
                            ObjectValue = nodeID
                        };

                        if (classificationID.HasValue)
                        {
                            selectedNodeRequest.ClassificationID = classificationID.Value;
                        }

                        _certonaService.SetSelectedNode(selectedNodeRequest);
                    }
                    catch (TimeoutException exception)
                    {
                        _certonaService.Abort();
                        throw;
                    }
                    catch (CommunicationException exception)
                    {
                        _certonaService.Abort();
                        throw;
                    }
                }
            }
            catch (Exception ex)
            {
                throw;
            }
        }