public async Task <IActionResult> OnSubscribe([FromBody] OnSubscribePayload request) { await Subscribe(request); return(Ok()); }
/// <summary> /// This event is called when authorized client subscribe a specific topic. /// For more information <see cref="https://docs.vernemq.com/plugin-development/subscribeflow#on_subscribe-and-on_subscribe_m5"/> /// </summary> /// <param name="authOnRegisterPayload">subsciption information</param> /// <returns></returns> protected virtual async Task Subscribe(OnSubscribePayload onSubscribePayload) { return; }