Beispiel #1
0
        void OnUpdateExtraInfoCompleted(object sender, SendCompletedEventArgs e)
        {
            if (e.Error != null)
            {
                InvokeUpdateExtraInfoCompleted(false, null, null);
                return;
            }

            var result = e.Result.FromJson<RemoteTileInfo>();
            InvokeUpdateExtraInfoCompleted(true, result.Uri, result.Interval);
        }
Beispiel #2
0
 protected virtual void InvokeSendCompleted(SendCompletedEventArgs e)
 {
     EventHandler<SendCompletedEventArgs> handler = SendCompleted;
     if (handler != null) handler(this, e);
 }
Beispiel #3
0
        void OnUnregisterCompleted(object sender, SendCompletedEventArgs e)
        {
            if (e.Error != null)
            {
                InvokeUnregisterCompleted(false);
                return;
            }

            InvokeUnregisterCompleted(true);
        }