Welcome to mirror list, hosted at ThFree Co, Russian Federation.

DispatcherObject.cs « System.Windows.Threading « WindowsBase « FPF « Editor « src - github.com/microsoft/vs-editor-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 37823459975e80f19391b8e1830d9afd94691037 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using System.ComponentModel;

namespace System.Windows.Threading
{
    public abstract class DispatcherObject
    {
        [EditorBrowsable(EditorBrowsableState.Never)]
        public Dispatcher Dispatcher { get; }

        protected DispatcherObject ()
            => Dispatcher = Dispatcher.CurrentDispatcher;

        [EditorBrowsable(EditorBrowsableState.Never)]
        public bool CheckAccess()
            => Dispatcher.CheckAccess();

        [EditorBrowsable(EditorBrowsableState.Never)]
        public void VerifyAccess()
            => Dispatcher.VerifyAccess();
    }
}