Ejemplo n.º 1
0
 private KeyPathsDictionary FilterNonPostCommitHooks(KeyPathsDictionary hooksDictionary)
 {
     return(hooksDictionary
            .Where(kvp => _postCommitHookTypes.Contains(kvp.Key.Type))
            .ToDictionary(kvp => kvp.Key, kvp => kvp.Value));
 }
Ejemplo n.º 2
0
 private KeyPathsDictionary FilterNonNotificationHooks(KeyPathsDictionary hooksDictionary)
 {
     return(hooksDictionary
            .Where(kvp => NotificationHookTypes.Contains(kvp.Key.type))
            .ToDictionary(kvp => kvp.Key, kvp => kvp.Value));
 }