/// <summary> /// Helper function to set the Unsubscribe flag and send the message over the link. /// </summary> /// <param name="message">The subscription request to send.</param> /// <returns> /// <c>true</c>, if the message has been serialized and sent properly, /// <c>false</c>, if the socket is unavailable. /// </returns> public async virtual Task <bool> SendUnsubscribeAsync(SubscriptionRequest message) { message.setSubRequestType(SubscriptionRequest.ReqType.Unsubscribe); return(await this.SendMessageAsync(message)); }