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; }
public void Dispose() { if (_wsAddressEntry != null) { _wsAddressEntry.Dispose(); _wsAddressEntry = null; } if (_recipient != null) { Marshal.ReleaseComObject(_recipient); _recipient = null; } }
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; } }