本文整理汇总了C#中SessionStateItemExpireCallback类的典型用法代码示例。如果您正苦于以下问题:C# SessionStateItemExpireCallback类的具体用法?C# SessionStateItemExpireCallback怎么用?C# SessionStateItemExpireCallback使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SessionStateItemExpireCallback类属于命名空间,在下文中一共展示了SessionStateItemExpireCallback类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetItemExpireCallback
public override bool SetItemExpireCallback(SessionStateItemExpireCallback expireCallback)
{
return false;
}
示例2: SetItemExpireCallback
public override bool SetItemExpireCallback(SessionStateItemExpireCallback expireCallback)
{
_expireCallBack = expireCallback;
return true;
}
示例3: SetItemExpireCallback
/// <summary>
/// This method sets the reference for the ExpireCallback delegate if setting is enabled.
/// </summary>
/// <param name="expireCallback"></param>
/// <returns>false </returns>
public override bool SetItemExpireCallback(SessionStateItemExpireCallback expireCallback)
{
if (this.enableExpireCallback)
{
this.expireCallback = expireCallback;
return true;
}
return false;
}
示例4: SetItemExpireCallback
// Called by SessionStateModule to notify the provider that Session_End is defined
// in global.asax, and so when an item expires, it should call the expireCallback
// If the provider does not support session expiry, it should return false.
public abstract bool SetItemExpireCallback(SessionStateItemExpireCallback expireCallback);
示例5: SetItemExpireCallback
/// <summary>
/// SessionStateProviderBase.SetItemExpireCallback
/// </summary>
public override bool SetItemExpireCallback(SessionStateItemExpireCallback expireCallback)
{
// Accept and store callback if session expire callback is enabled. If not, return false in order to inform SessionStateModule
// the session expire callback is not supported.
if (!m_enableExpireCallback)
return false;
m_expireCallback = expireCallback;
return true;
}
示例6: SetItemExpireCallback
public override bool SetItemExpireCallback (SessionStateItemExpireCallback expireCallback) {
return true; //we call session.invalidate so our session listener will call Session_OnEnd
}
示例7: SetItemExpireCallback
public abstract virtual bool SetItemExpireCallback(SessionStateItemExpireCallback expireCallback)
{
}
示例8: SetItemExpireCallback
public override bool SetItemExpireCallback(SessionStateItemExpireCallback expireCallback)
{
throw new NotImplementedException();
}
示例9: SetItemExpireCallback
} // End of the CreateNewStoreData method
#endregion
#region Update methods
/// <summary>
/// Set the callback for session expiration
/// </summary>
public override bool SetItemExpireCallback(SessionStateItemExpireCallback expireCallback)
{
return false;
} // End of the SetItemExpireCallback method
示例10: SetItemExpireCallback
/// <summary>
/// Sets a reference to the <see cref="T:System.Web.SessionState.SessionStateItemExpireCallback"></see> delegate for the Session_OnEnd event defined in the Global.asax file.
/// </summary>
/// <param name="expireCallback">The <see cref="T:System.Web.SessionState.SessionStateItemExpireCallback"></see> delegate for the Session_OnEnd event defined in the Global.asax file.</param>
/// <returns>
/// true if the session-state store provider supports calling the Session_OnEnd event; otherwise, false.
/// </returns>
public override bool SetItemExpireCallback(SessionStateItemExpireCallback expireCallback)
{
throw new Exception("The method or operation is not implemented.");
}