Example #1
0
        internal static ReferenceHandle Register(MessengerImpl messenger, object target, bool weakreference)
        {
            var attrs   = MessageHandleUtil.GetAttributes(target.GetType());
            var handles = new ReferenceHandle[attrs.Length];

            for (int i = 0; i < attrs.Length; i++)
            {
                var attr = attrs[i];
                handles[i] = attr.m_Register(messenger, target, attr, weakreference);
            }
            return(new ReferenceHandle(handles));
        }
Example #2
0
 public static void Preload(Type type)
 {
     MessageHandleUtil.GetAttributes(type);
 }