private void ClientOnBreakRootMapInheritanceCompleted(object sender, BreakRootMapInheritanceCompletedEventArgs e)
 {
     if (e.UserState is Guid)
     {
         var guid = (Guid)e.UserState;
         if (ObjectDictionary.ContainsKey(guid) &&
             BreakRootMapInheritanceCompletedEventHandlers.ContainsKey(guid))
         {
             BreakRootMapInheritanceCompletedEventHandlers[guid](ObjectDictionary[guid], e);
             BreakRootMapInheritanceCompletedEventHandlers.Remove(guid);
             ObjectDictionary.Remove(guid);
         }
     }
 }
        public void BreakRootMapInheritanceAsync(object context, EventHandler <BreakRootMapInheritanceCompletedEventArgs> action, Guid parentGuid, Guid objectGuid)
        {
            var guid = Guid.NewGuid();

            ObjectDictionary.Add(guid, context);
            BreakRootMapInheritanceCompletedEventHandlers.Add(guid, action);
            Client.BreakRootMapInheritanceAsync(App.Params.SiteUrl, new GlymaSecurableObject {
                SecurableParentUid = parentGuid, SecurableObjectUid = objectGuid
            }, guid);
        }