/// <summary> /// Renews the security token. /// </summary> /// <param name="token">The token.</param> /// <returns>The message identifier.</returns> public virtual long RenewSecurityToken(string token) { var header = CreateMessageHeader(Protocols.Core, MessageTypes.Core.RenewSecurityToken); var renewSecurityToken = new RenewSecurityToken { Token = token }; return(Session.SendMessage(header, renewSecurityToken)); }
/// <summary> /// Handles the RenewSecurityToken message from a client. /// </summary> /// <param name="header">The message header.</param> /// <param name="renewSecurityToken">The RenewSecurityToken message.</param> protected virtual void HandleRenewSecurityToken(IMessageHeader header, RenewSecurityToken renewSecurityToken) { Notify(OnRenewSecurityToken, header, renewSecurityToken); }