示例#1
0
 private void ReleaseNativeEnumerator()
 {
     if (this.nativeEnumerator != null)
     {
         Marshal.FinalReleaseComObject(this.nativeEnumerator);
         this.nativeEnumerator = null;
     }
 }
示例#2
0
        internal KeyValueStoreNotificationEnumerator(
            NativeRuntime.IFabricKeyValueStoreNotificationEnumerator nativeEnumerator)
        {
            Utility.WrapNativeSyncInvokeInMTA(() =>
            {
                this.nativeEnumerator = (NativeRuntime.IFabricKeyValueStoreNotificationEnumerator2)nativeEnumerator;
            },
                                              "KeyValueStoreNotificationEnumerator.ctor");

            this.cachedCurrent     = null;
            this.cachedCurrentLock = new object();
        }