private FileManagerDataControllerService GetFileManagerResourcesClient() { if (!IsConnected) return null; try { var client = new FileManagerDataControllerService { Url = string.Format("{0}/FileManagerData/quote?ws=1", Website) }; return client; } catch { return null; } }
public static bool IsAuthorized(string url, string login, string password) { try { var client = new FileManagerDataControllerService { Url = String.Format("{0}/FileManagerData/quote?ws=1", url) }; var sessionKey = client.getSessionKey(login, password); return !String.IsNullOrEmpty(sessionKey); } catch { return false; } }