Ejemplo n.º 1
0
        public async Task <IActionResult> OnPublish([FromBody] OnPublishPayload request)
        {
            await Publish(request);

            return(Ok());
        }
Ejemplo n.º 2
0
 /// <summary>
 /// This event is called when a new message has published successfully.
 /// For more information <see cref="https://docs.vernemq.com/plugin-development/publishflow#on_publish-and-on_publish_m5"/>
 /// </summary>
 /// <param name="authOnRegisterPayload">published message information</param>
 /// <returns></returns>
 protected virtual async Task Publish(OnPublishPayload authOnRegisterPayload)
 {
     return;
 }