本文整理汇总了C#中AuthenticationEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# AuthenticationEventArgs类的具体用法?C# AuthenticationEventArgs怎么用?C# AuthenticationEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AuthenticationEventArgs类属于命名空间,在下文中一共展示了AuthenticationEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Authentication_LoggedIn
private void Authentication_LoggedIn(object sender, AuthenticationEventArgs e)
{
this.UpdateLoginState();
if (LoginStatusChanged != null)
{
LoginStatusChanged(this, new LoginStatusChangedEventArgs(Events.LoginStatus.Login));
}
}
开发者ID:talywy,项目名称:AccountBook,代码行数:8,代码来源:LoginStatus.xaml.cs
示例2: PublishUserRoles
public void PublishUserRoles(object sender, AuthenticationEventArgs args)
{
UserRoleService.GetInstance().UserRoles = new ObservableCollection<string>(
WebContext.Current.User.Roles
);
/* Messanger.Get<UserLoginMessage>().Publish(
new UserLoginEventArgs
{
UserName = WebContext.Current.User.DisplayName,
UserRoles = new List<string>(WebContext.Current.User.Roles)
});*/
}
开发者ID:berdyshev,项目名称:TeamManager,代码行数:12,代码来源:Bootstrapper.cs
示例3: Authenticated
private void Authenticated(object sender, AuthenticationEventArgs e)
{
room = JabberSession.ConferenceManager.GetRoom(ConferenceJid);
room.OnJoin += r => JabberSession.Invoke(() => room_OnJoin(r));
room.OnLeave += (r, p) => JabberSession.Invoke(() => room_OnLeave(r, p));
room.OnSubjectChange += room_OnSubjectChange;
room.OnPresenceError += (r, p) => JabberSession.Invoke(() => room_OnPresenceError(r, p));
room.OnSelfMessage += (s, msg) => JabberSession.Invoke(() => room_OnSelfMessage(s, msg));
room.OnAdminMessage += (s, msg) => JabberSession.Invoke(() => room_OnAdminMessage(s, msg));
room.OnRoomMessage += (s, msg) => JabberSession.Invoke(() => room_OnRoomMessage(s, msg));
room.OnParticipantJoin += (r, p) => JabberSession.Invoke(() => room_OnParticipantJoin(r, p));
room.OnParticipantLeave += (r, p) => JabberSession.Invoke(() => room_OnParticipantLeave(r, p));
room.Join();
}
开发者ID:eNoise,项目名称:cyclops-chat,代码行数:16,代码来源:Conference.cs
示例4: Authentication_LoggedOut
void Authentication_LoggedOut(object sender, AuthenticationEventArgs e)
{
viewOrchestrator.ChangeView(RegionNames.MAIN_REGION, "LoginView");
viewOrchestrator.DeactivateView(RegionNames.HEADER_REGION, "StatusView");
}
开发者ID:ynosa,项目名称:KanbanBoard,代码行数:5,代码来源:LoginController.cs
示例5: AuthenticationLoggedOut
public override void AuthenticationLoggedOut(object sender, AuthenticationEventArgs e)
{
}
开发者ID:resadzacina,项目名称:SCMS,代码行数:3,代码来源:EditTeamLeagueViewModel.cs
示例6: AuthenticationLoggedOut
public override void AuthenticationLoggedOut(object sender, AuthenticationEventArgs e)
{
UpdateHomeUI();
}
开发者ID:resadzacina,项目名称:SCMS,代码行数:4,代码来源:HomeViewModel.cs
示例7: UserLoginChange
private void UserLoginChange(object sender, AuthenticationEventArgs e)
{
ResourceAuthenticate();
}
开发者ID:Attention,项目名称:NitpickHouse,代码行数:4,代码来源:WebContext.partial.cs
示例8: AuthenticationLoggedOut
private void AuthenticationLoggedOut(object sender, AuthenticationEventArgs e)
{
customers.Clear();
}
开发者ID:brisebois,项目名称:SLBusinessApplication,代码行数:4,代码来源:HomeViewModel.cs
示例9: AuthenticationLoggedOut
public virtual void AuthenticationLoggedOut(object sender, AuthenticationEventArgs e)
{
IsLoggedIn = false;
}
开发者ID:resadzacina,项目名称:SCMS,代码行数:4,代码来源:ViewModelBase.cs
示例10: Authenticated
static void Authenticated(object sender, AuthenticationEventArgs e)
{
Console.WriteLine(@"Connected ({0})", e);
}
开发者ID:eNoise,项目名称:cyclops-chat,代码行数:4,代码来源:Program.cs
示例11: OnConnectionDropped
private void OnConnectionDropped(object sender, AuthenticationEventArgs e)
{
room = null;
IsConnected = false;
Disconnected(this, new DisconnectEventArgs(ConnectionErrorKind.ConnectionError, e.ErrorMessage));
}
开发者ID:eNoise,项目名称:cyclops-chat,代码行数:6,代码来源:Conference.cs
示例12: _service_LoggedOut
private void _service_LoggedOut(object sender, AuthenticationEventArgs e)
{
if (AuthenticationChanged != null)
AuthenticationChanged(this, e);
}
开发者ID:hieu292,项目名称:hrm-k14vlu,代码行数:5,代码来源:AuthenticationModel.cs
示例13: GetAuthorization
void GetAuthorization()
{
if (ConnectionInformation.AuthenticationMethod == AuthenticationMethod.None) return;
string authorizationLine = GetHeaderValue("Authorization");
if (string.IsNullOrEmpty(authorizationLine)) return;
string[] split = authorizationLine.Split(' ');
if (split.Length < 2) return;
AuthenticationEventArgs e;
switch (split[0])
{
case "Basic":
byte[] buffer = Convert.FromBase64String(split[1]);
string[] userpass = Encoding.ASCII.GetString(buffer).Split(':');
e = new AuthenticationEventArgs(userpass[0], string.Empty, AuthenticationMethod.Basic);
OnAuthenticateHandler(e);
if (e.Accept && e.Password == userpass[1])
{
ci.LogonUser = e.Login;
ci.AuthPassword = e.Password;
}
break;
case "Digest":
if (split.Length < 3)
{
split = split[1].Split(',').Select(s => s.Trim()).ToArray();
}
var digest = new DigestAuthenticationProcessor(split);
digest.Method = httpMethod;
e = new AuthenticationEventArgs(digest.Username, string.Empty, AuthenticationMethod.Digest);
OnAuthenticateHandler(e);
if (e.Accept && digest.CheckValid(e.Password))
{
ci.LogonUser = e.Login;
ci.AuthPassword = e.Password;
}
break;
}
}
开发者ID:leon737,项目名称:EmbeddedWebServer,代码行数:38,代码来源:WorkingProcess.cs
示例14: AuthenticationLoggedOut
public override void AuthenticationLoggedOut(object sender, AuthenticationEventArgs e)
{
AreButtonsVisible = false;
}
开发者ID:resadzacina,项目名称:SCMS,代码行数:4,代码来源:MainViewModel.cs
示例15: AuthenticationLoggedOut
private void AuthenticationLoggedOut(object sender, AuthenticationEventArgs e)
{
if (CanExecuteChanged != null)
CanExecuteChanged.Invoke(this, new EventArgs());
}
开发者ID:brisebois,项目名称:SLBusinessApplication,代码行数:5,代码来源:LoadCustomers.cs
示例16: Authentication_LoggedIn
private void Authentication_LoggedIn(object sender, AuthenticationEventArgs e)
{
if(e.User.Identity.IsAuthenticated)
InvokeInitialized();
}
开发者ID:sergiosorias,项目名称:terminalzero,代码行数:5,代码来源:AppViewModel.cs
示例17: AuthenticationLoggedIn
public override void AuthenticationLoggedIn( object sender, AuthenticationEventArgs e )
{
IsLoggedIn = true;
}
开发者ID:resadzacina,项目名称:SCMS,代码行数:4,代码来源:MemberToTeamAssignViewModel.cs
示例18: AuthenticationLoggedIn
public virtual void AuthenticationLoggedIn(object sender, AuthenticationEventArgs e)
{
IsLoggedIn = true;
}
开发者ID:resadzacina,项目名称:SCMS,代码行数:4,代码来源:ViewModelBase.cs
示例19: Authentication_LoggedIn
private void Authentication_LoggedIn(object sender, AuthenticationEventArgs e)
{
LoadContentByAuthentication();
}
开发者ID:dimpapadim3,项目名称:NErgyPlatformSample,代码行数:4,代码来源:ProjectViewSingleProjectPreview.xaml.cs
示例20: Authentication_LoggedOut
private void Authentication_LoggedOut(object sender, AuthenticationEventArgs e)
{
this.UpdateLoginState();
}
开发者ID:michaeldoser,项目名称:Sandbox,代码行数:4,代码来源:LoginStatus.xaml.cs
注:本文中的AuthenticationEventArgs类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论