예제 #1
0
        static Realm()
        {
            NativeCommon.Initialize();

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

            NativeCommon.register_notify_realm_changed(notifyRealm);

            SynchronizationContextEventLoopSignal.Install();
        }
예제 #2
0
        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();
        }