/// <summary> /// Registers the member definitions. /// </summary> /// <param name="memberDefinitions">The member definitions.</param> private void RegisterMemberDefinitions(IEnumerable <IMemberDefinition> memberDefinitions) { lock (Callbacks) { InterceptedMembers = memberDefinitions.ToList(); var members = InterceptedMembers.Where(member => !Callbacks.Contains(member)); members.ForEach(member => Callbacks.Add(member, new CallbackCollection())); } }