Example #1
0
 private void ClientOnGetSecurityAssociationsCompleted(object sender, GetSecurityAssociationsCompletedEventArgs e)
 {
     if (e.UserState is Guid)
     {
         var guid = (Guid)e.UserState;
         if (ObjectDictionary.ContainsKey(guid) &&
             GetSecurityAssociationsCompletedEventHandlers.ContainsKey(guid))
         {
             GetSecurityAssociationsCompletedEventHandlers[guid](ObjectDictionary[guid], e);
             GetSecurityAssociationsCompletedEventHandlers.Remove(guid);
             ObjectDictionary.Remove(guid);
         }
     }
 }