Exemplo n.º 1
0
        public override async ValueTask HandleDispatchAsync(IGatewayApiClient shard, IJsonNode data)
        {
            var model     = data.ToType <TModel>();
            var eventArgs = await HandleDispatchAsync(shard, model).ConfigureAwait(false);

            if (eventArgs == null || eventArgs == EventArgs.Empty)
            {
                return;
            }

            await InvokeEventAsync(eventArgs).ConfigureAwait(false);
        }