/// <summary> /// Converts the SubscriptionResponse to a list of headers /// </summary> /// <returns><see cref="HeaderCollection"/></returns> public override HeaderCollection ToHeaders() { HeaderCollection headers = new HeaderCollection(); Header hTTL = new Header(Header.SUBSCRIPTION_TTL, this.ttl.ToString()); headers.AddHeader(hTTL); HeaderCollection baseHeaders = base.ToHeaders(); headers.AddHeaders(baseHeaders); return headers; }
/// <summary> /// Converts the SubscriptionResponse to a list of headers /// </summary> /// <returns><see cref="HeaderCollection"/></returns> public override HeaderCollection ToHeaders() { HeaderCollection headers = new HeaderCollection(); Header hTTL = new Header(Header.SUBSCRIPTION_TTL, this.ttl.ToString()); headers.AddHeader(hTTL); HeaderCollection baseHeaders = base.ToHeaders(); headers.AddHeaders(baseHeaders); return(headers); }