本文整理匯總了C#中System.IdentityModel.Services.WSFederationAuthenticationModule.SessionSecurityTokenCreated事件的典型用法代碼示例。如果您正苦於以下問題:C# WSFederationAuthenticationModule.SessionSecurityTokenCreated事件的具體用法?C# WSFederationAuthenticationModule.SessionSecurityTokenCreated怎麽用?C# WSFederationAuthenticationModule.SessionSecurityTokenCreated使用的例子?那麽, 這裏精選的事件代碼示例或許可以為您提供幫助。您也可以進一步了解該事件所在類System.IdentityModel.Services.WSFederationAuthenticationModule
的用法示例。
在下文中一共展示了WSFederationAuthenticationModule.SessionSecurityTokenCreated事件的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: WSFederationAuthenticationModule_SessionSecurityTokenCreated
void WSFederationAuthenticationModule_SessionSecurityTokenCreated(object sender, SessionSecurityTokenCreatedEventArgs e)
{
//Manipulate session token here, for example, changing its expiration value
System.Diagnostics.Trace.WriteLine("Handling SessionSecurityTokenCreated event");
System.Diagnostics.Trace.WriteLine("Key valid from: " + e.SessionToken.KeyEffectiveTime);
System.Diagnostics.Trace.WriteLine("Key expires on: " + e.SessionToken.KeyExpirationTime);
}
開發者ID:.NET開發者,項目名稱:System.IdentityModel.Services,代碼行數:7,代碼來源:WSFederationAuthenticationModule.SessionSecurityTokenCreated