SrmLogoutLocale
This method logs out of the Site Recovery Manager server and terminates the current session. It takes the same managed object reference as for SrmLoginLocale, and should be called with other methods to clean up a connection.
Synopsis
void SrmLogoutLocale( )
Faults
- NotAuthenticated
- RuntimeFault
See Faults in Site Recovery Manager API for more details.
C# code to log out
public void Disconnect() { if (_service != null) { _service.SrmLogoutLocale(_svcRef); _service.Dispose(); _service = null; _sic = null; } }
The Java code is simpler than the C# code.
Java code to log out
private static void disconnect() throws Exception { if (isConnected) { srmPort.srmLogoutLocale(SVC_INST_REF); } isConnected = false; }