gov.va.medora.mdws.ConnectionLib.disconnectAll C# (CSharp) Method

disconnectAll() public method

public disconnectAll ( ) : TaggedTextArray
return gov.va.medora.mdws.dto.TaggedTextArray
        public TaggedTextArray disconnectAll()
        {
            TaggedTextArray result = new TaggedTextArray();
            if (mySession.ConnectionSet == null || mySession.ConnectionSet.Count == 0)
            {
                result.fault = new FaultTO(NO_CONNECTIONS);
            }
            if (result.fault != null)
            {
                return result;
            }
            try
            {
                IndexedHashtable t = mySession.ConnectionSet.disconnectAll();
                result = new TaggedTextArray(t);
                mySession.ConnectionSet.Clear();
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e.Message);
            }

            return result;
        }