/// <summary> /// 用户名密码方式,有权限 /// </summary> /// <param name="username">用户名</param> /// <param name="password">密码</param> /// <param name="scope">权限列表</param> /// <param name="callback">回调</param> public void LogIn(string username, string password, List <string> scope, LoginCompletedHandler callback) { if (loginBS == null) { loginBS = new LoginBS(); } loginBS.CleanLoginEvent(); loginBS.LoginCompleted += callback; loginBS.LogIn(username, password, scope); }
/// <summary> /// 登录,页面方式,有权限设置 /// </summary> /// <param name="page">当前显示页面</param> /// <param name="scope">权限列表</param> /// <param name="redirectUri">转向</param> /// <param name="callback">回调</param> public void LogIn(PhoneApplicationPage page, List <string> scope, string redirectUri, LoginCompletedHandler callback) { if (loginViewBS == null) { loginViewBS = new LoginViewBS(); } loginViewBS.CleanLoginEvent(); loginViewBS.LoginCompleted += callback; loginViewBS.InitView(page); loginViewBS.Login(redirectUri, scope); }
/// <summary> /// 登录,页面方式,有权限设置 /// </summary> /// <param name="page">当前显示页面</param> /// <param name="scope">权限列表</param> /// <param name="callback">回调</param> public void Login(PhoneApplicationPage page, List <string> scope, LoginCompletedHandler callback) { rrSDK.LogIn(page, scope, ConstantValue.Redirect_Uri, callback); }
/// <summary> /// 用户名密码方式,有权限 /// </summary> /// <param name="username">用户名</param> /// <param name="password">密码</param> /// <param name="scope">权限列表</param> /// <param name="callback">回调</param> public void Login(string username, string password, List <string> scope, LoginCompletedHandler callback) { rrSDK.LogIn(username, password, scope, callback); }
/// <summary> /// 登录,页面方式,有权限设置 /// </summary> /// <param name="page">当前显示页面</param> /// <param name="scope">权限列表</param> /// <param name="redirectUri">转向</param> /// <param name="callback">回调</param> public void LogIn(PhoneApplicationPage page, List<string> scope, string redirectUri, LoginCompletedHandler callback) { if (loginViewBS == null) { loginViewBS = new LoginViewBS(); } loginViewBS.CleanLoginEvent(); loginViewBS.LoginCompleted += callback; loginViewBS.InitView(page); loginViewBS.Login(redirectUri, scope); }
/// <summary> /// 登录,页面方式,无权限设置 /// </summary> /// <param name="page">当前显示页面</param> /// <param name="redirectUri">转向</param> /// <param name="callback">回调</param> public void LogIn(PhoneApplicationPage page, string redirectUri, LoginCompletedHandler callback) { LogIn(page, null, redirectUri, callback); }
/// <summary> /// 用户名密码方式,有权限 /// </summary> /// <param name="username">用户名</param> /// <param name="password">密码</param> /// <param name="scope">权限列表</param> /// <param name="callback">回调</param> public void LogIn(string username, string password, List<string> scope, LoginCompletedHandler callback) { if (loginBS == null) { loginBS = new LoginBS(); } loginBS.CleanLoginEvent(); loginBS.LoginCompleted += callback; loginBS.LogIn(username, password, scope); }
/// <summary> /// 用户名密码方式,无权限 /// </summary> /// <param name="username">用户名</param> /// <param name="password">密码</param> /// <param name="callback">回调</param> public void LogIn(string username, string password, LoginCompletedHandler callback) { LogIn(username, password, null, callback); }
/// <summary> /// 用户名密码方式,无权限 /// </summary> /// <param name="username">用户名</param> /// <param name="password">密码</param> /// <param name="callback">回调</param> public void LogIn(string username, string password, LoginCompletedHandler callback) { LogIn(username, password, null, callback); }
/// <summary> /// 登录,页面方式,无权限设置 /// </summary> /// <param name="page">当前显示页面</param> /// <param name="redirectUri">转向</param> /// <param name="callback">回调</param> public void LogIn(PhoneApplicationPage page, string redirectUri, LoginCompletedHandler callback) { LogIn(page, null, redirectUri, callback); }
/// <summary> /// 登录,页面方式,有权限设置 /// </summary> /// <param name="page">当前显示页面</param> /// <param name="scope">权限列表</param> /// <param name="callback">回调</param> public void Login(PhoneApplicationPage page, List<string> scope, LoginCompletedHandler callback) { rrSDK.LogIn(page, scope, ConstantValue.Redirect_Uri, callback); }
/// <summary> /// 用户名密码方式,有权限 /// </summary> /// <param name="username">用户名</param> /// <param name="password">密码</param> /// <param name="scope">权限列表</param> /// <param name="callback">回调</param> public void Login(string username, string password, List<string> scope, LoginCompletedHandler callback) { rrSDK.LogIn(username, password, scope, callback); }
public static void LoginAsync(string plogin, string ppass, LoginCompletedHandler handler) { instance.LoginCompleted -= handler; instance.LoginCompleted += handler; instance.doLoginAsync(plogin, ppass); }