Пример #1
0
        /// <summary>
        /// Renews the security token.
        /// </summary>
        /// <param name="token">The token.</param>
        /// <returns>The sent message on success; <c>null</c> otherwise.</returns>
        public virtual EtpMessage <RenewSecurityToken> RenewSecurityToken(string token)
        {
            var body = new RenewSecurityToken
            {
                Token = token ?? string.Empty
            };

            return(SendRequest(body));
        }
Пример #2
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));
        }
Пример #3
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);
 }