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

ReleaseOnChannelCore() private method

private ReleaseOnChannelCore ( DUCE.Channel channel ) : void
channel DUCE.Channel
return void
        internal override void ReleaseOnChannelCore(DUCE.Channel channel)
        {
            Debug.Assert(_duceResource.IsOnChannel(channel));

            if (_duceResource.ReleaseOnChannel(channel))
            {
                ReleaseOnChannelAnimations(channel);
                
                // If we are being pulled off the asynchronous compositor channel
                // while we still have a handler hooked to the commit batch event,
                // remove the handler to avoid situations where would leak the D3DImage
                if (!channel.IsSynchronous)
                {
                    UnsubscribeFromCommittingBatch();
                }
            }
        }