public static void Login(string username, string password, string roles, EventHandler <EventArgs> completed) { BusinessIdentity.GetIdentity(username, password, roles, (o, e) => { if (e.Object == null) { SetPrincipal(BusinessIdentity.UnauthenticatedIdentity()); } else { SetPrincipal(e.Object); } completed(null, EventArgs.Empty); }); }
public static void Login(string username, string password, string roles) { BusinessIdentity.GetIdentity(username, password, roles); }