static Realm() { NativeCommon.Initialize(); NativeCommon.NotifyRealmCallback notifyRealm = RealmState.NotifyRealmChanged; GCHandle.Alloc(notifyRealm); NativeCommon.register_notify_realm_changed(notifyRealm); SynchronizationContextEventLoopSignal.Install(); }
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); }
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); }
static Realm() { NativeCommon.Initialize(); NativeCommon.register_notify_realm_changed(NotifyRealmChanged); }
static Realm() { NativeCommon.Initialize(); NativeCommon.register_notify_realm_changed(NotifyRealmChanged); NativeCommon.register_notify_realm_object_changed(RealmObject.NotifyRealmObjectPropertyChanged); }