Пример #1
0
        /// <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));
        }
Пример #2
0
 /// <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);
 }