public static void DisconnectUser(string login) { ServiceUserClient serviceUser = new ServiceUserClient(); try { serviceUser.Disconnect(login); } catch (Exception) { } finally { serviceUser.Close(); } }
public static void Disconnect(string login) { ServiceUserClient serviceUser = new ServiceUserClient(); try { serviceUser.Disconnect(login); } catch (Exception) { } }
/// <summary> /// Call WCF Disconnect function /// </summary> /// <param name="login"></param> /// <returns></returns> public bool Disconnect(string login) { try { _service.Disconnect(login); return(true); } catch (Exception) { return(false); } }