register_notify_realm_changed() private method

private register_notify_realm_changed ( NotifyRealmCallback callback ) : void
callback NotifyRealmCallback
return void
Example #1
0
        static Realm()
        {
            NativeCommon.Initialize();

            NativeCommon.NotifyRealmCallback notifyRealm = RealmState.NotifyRealmChanged;
            GCHandle.Alloc(notifyRealm);

            NativeCommon.register_notify_realm_changed(notifyRealm);

            SynchronizationContextEventLoopSignal.Install();
        }
Example #2
0
        static Realm()
        {
            RealmObjectClasses = AppDomain.CurrentDomain.GetAssemblies()
                                 .SelectMany(a => a.GetTypes())
                                 .Where(t => t.IsSubclassOf(typeof(RealmObject)))
                                 .ToArray();

            ObjectSchemaCache = new Dictionary <Type, IntPtr>();
            NativeCommon.Initialize();
            NativeCommon.register_notify_realm_changed(NotifyRealmChanged);
        }
Example #3
0
        static Realm()
        {
            RealmObjectClasses = AppDomain.CurrentDomain.GetAssemblies()
                                          #if !__IOS__
                                 // we need to exclude dynamic assemblies. see https://bugzilla.xamarin.com/show_bug.cgi?id=39679
                                 .Where(a => !(a is System.Reflection.Emit.AssemblyBuilder))
                                          #endif
                                 .SelectMany(a => a.GetTypes())
                                 .Where(t => t.IsSubclassOf(typeof(RealmObject)))
                                 .ToArray();

            ObjectSchemaCache = new Dictionary <Type, IntPtr>();
            NativeCommon.Initialize();
            NativeCommon.register_notify_realm_changed(NotifyRealmChanged);
        }
Example #4
0
 static Realm()
 {
     NativeCommon.Initialize();
     NativeCommon.register_notify_realm_changed(NotifyRealmChanged);
 }
Example #5
0
 static Realm()
 {
     NativeCommon.Initialize();
     NativeCommon.register_notify_realm_changed(NotifyRealmChanged);
     NativeCommon.register_notify_realm_object_changed(RealmObject.NotifyRealmObjectPropertyChanged);
 }