public void AddCallback <TResult>(
     string transactionId,
     ToastCallback <TResult> callback,
     Converter <NativeResponse, TResult> converter)
 {
     AddCallbackInternal(transactionId, callback, converter);
 }
        private void AddCallbackInternal <TResult>(
            string transactionId,
            ToastCallback <TResult> callback,
            Converter <NativeResponse, TResult> converter)
        {
            ToastRegisterCallback toastRegisterCallback = (result, json) => callback(result, converter(json));

            _callbackTable.Add(transactionId, toastRegisterCallback);
        }
        /// <summary>
        /// 微软提供的回调,但是目前没有响应
        /// </summary>
        public override void OnActivated(string arguments, NotificationUserInput userInput, string appUserModelId)
        {
            List <KeyValuePair <string, string> > kvs = new List <KeyValuePair <string, string> >();

            if (userInput != null && userInput.Count > 0)
            {
                foreach (var key in userInput.Keys)
                {
                    kvs.Add(new KeyValuePair <string, string>(key, userInput[key]));
                }
            }
            ToastCallback?.Invoke(appUserModelId, arguments, kvs);
        }