public static bool IsAuthorized(RDIFramework.Utilities.UserInfo userInfo) { if (userInfo == null) { return(false); } return(string.IsNullOrEmpty(ServiceUserName) || (string.IsNullOrEmpty(ServicePassword) || (ServiceUserName.Equals(userInfo.ServiceUserName) && ServicePassword.Equals(userInfo.ServicePassword)))); }
public static void LogOn(RDIFramework.Utilities.UserInfo userInfo) { UserInfo = userInfo; }