示例#1
0
 public AddressEntry Add(string Type, [Optional] object Name, [Optional] object Address)
 {
     InitializeAddressEntries();
     var addressEntry = new WsAddressEntry(_addressEntries.Add(Type, Name, Address));
     _wsAddressEntries.Add(addressEntry);
     return addressEntry;
 }
示例#2
0
 public void Dispose()
 {
     if (_wsAddressEntry != null)
     {
         _wsAddressEntry.Dispose();
         _wsAddressEntry = null;
     }
     if (_recipient != null)
     {
         Marshal.ReleaseComObject(_recipient);
         _recipient = null;
     }
 }
示例#3
0
        public void Dispose()
        {
            if (_wsPropertyAccessor != null)
            {
                _wsPropertyAccessor.Dispose();
                _wsPropertyAccessor = null;
            }

            if (_wsApplication != null)
            {
                _wsApplication.Dispose();
                _wsApplication = null;
            }

            if (_wsAddressEntryManager != null)
            {
                _wsAddressEntryManager.Dispose();
                _wsAddressEntryManager = null;
            }

            if (_addressEntries != null)
            {
                _addressEntries.Dispose();
                _addressEntries = null;
            }

            if (_addressEntry != null)
            {
                Marshal.ReleaseComObject(_addressEntry);
                _addressEntry = null;
            }
        }