System.Windows.Interop.D3DImage.Callback C# (CSharp) Method

Callback() private method

*** WARNING ***: This runs on the composition thread! What the composition thread calls when it wants to update D3DImage about front buffer state. It may be called multiple times with the same value. Since we're on a different thread we can't touch this, so queue a dispatcher operation.
private Callback ( bool isFrontBufferAvailable, uint version ) : void
isFrontBufferAvailable bool
version uint
return void
        private void Callback(bool isFrontBufferAvailable, uint version)
        {
            Dispatcher.BeginInvoke(
                DispatcherPriority.Normal,
                new DispatcherOperationCallback(SetIsFrontBufferAvailable),
                new Pair(BooleanBoxes.Box(isFrontBufferAvailable), version)
                );
        }