Ejemplo n.º 1
0
 public static void SubscribeToAddedEvent(string key, DynamicStorageEventHandler eventHandler)
 {
     if (SubscriptionsDictionary_Added.ContainsKey(key))
     {
         SubscriptionsDictionary_Added[key] += eventHandler;
     }
     else
     {
         SubscriptionsDictionary_Added.Add(key, eventHandler);
     }
 }
Ejemplo n.º 2
0
        internal static void InvokeAddedEvent(string key, string value)
        {
            if (SubscriptionsDictionary_Added.ContainsKey(key))
            {
                SubscriptionsDictionary_Added[key](new DynamicStorageEventArgs(DynamicStorageEventType.Added, key, value));
            }

            if (SubscriptionsDictionary_Added.ContainsKey(string.Empty))
            {
                SubscriptionsDictionary_Added[string.Empty](new DynamicStorageEventArgs(DynamicStorageEventType.Added, key, value));
            }
        }