static Realm() { NativeCommon.Initialize(); NativeCommon.NotifyRealmCallback notifyRealm = RealmState.NotifyRealmChanged; GCHandle.Alloc(notifyRealm); NativeCommon.register_notify_realm_changed(notifyRealm); SynchronizationContextEventLoopSignal.Install(); }
static Realm() { NativeCommon.Initialize(); NativeCommon.NotifyRealmCallback notifyRealm = RealmState.NotifyRealmChanged; GCHandle.Alloc(notifyRealm); NativeCommon.GetNativeSchemaCallback getNativeSchema = GetNativeSchema; GCHandle.Alloc(getNativeSchema); NativeCommon.register_callbacks(notifyRealm, getNativeSchema); SynchronizationContextEventLoopSignal.Install(); }