当前位置: 首页>>代码示例>>C#>>正文


C# IWaitIndicator类代码示例

本文整理汇总了C#中IWaitIndicator的典型用法代码示例。如果您正苦于以下问题:C# IWaitIndicator类的具体用法?C# IWaitIndicator怎么用?C# IWaitIndicator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IWaitIndicator类属于命名空间,在下文中一共展示了IWaitIndicator类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: NavigationBarController

        public NavigationBarController(
            INavigationBarPresenter presenter,
            ITextBuffer subjectBuffer,
            IWaitIndicator waitIndicator,
            IAsynchronousOperationListener asyncListener)
        {
            _presenter = presenter;
            _subjectBuffer = subjectBuffer;
            _waitIndicator = waitIndicator;
            _asyncListener = asyncListener;
            _workspaceRegistration = Workspace.GetWorkspaceRegistration(subjectBuffer.AsTextContainer());
            _workspaceRegistration.WorkspaceChanged += OnWorkspaceRegistrationChanged;

            presenter.CaretMoved += OnCaretMoved;
            presenter.ViewFocused += OnViewFocused;

            presenter.DropDownFocused += OnDropDownFocused;
            presenter.ItemSelected += OnItemSelected;

            subjectBuffer.PostChanged += OnSubjectBufferPostChanged;

            // Initialize the tasks to be an empty model so we never have to deal with a null case.
            _modelTask = Task.FromResult(
                new NavigationBarModel(
                    SpecializedCollections.EmptyList<NavigationBarItem>(),
                    default(VersionStamp),
                    null));

            _selectedItemInfoTask = Task.FromResult(new NavigationBarSelectedTypeAndMember(null, null));

            if (_workspaceRegistration.Workspace != null)
            {
                ConnectToWorkspace(_workspaceRegistration.Workspace);
            }
        }
开发者ID:Rickinio,项目名称:roslyn,代码行数:35,代码来源:NavigationBarController.cs

示例2: InteractiveWindowProvider

 public InteractiveWindowProvider(
     IContentTypeRegistryService contentTypeRegistry,
     ITextBufferFactoryService bufferFactory,
     IProjectionBufferFactoryService projectionBufferFactory,
     IEditorOperationsFactoryService editorOperationsFactory,
     ITextBufferUndoManagerProvider textBufferUndoManagerProvider,
     ITextEditorFactoryService editorFactory,
     IRtfBuilderService rtfBuilderService,
     IIntellisenseSessionStackMapService intellisenseSessionStackMap,
     ISmartIndentationService smartIndenterService,
     IInteractiveWindowEditorFactoryService windowFactoryService,
     IWaitIndicator waitIndicator)
 {
     _contentTypeRegistry = contentTypeRegistry;
     _bufferFactory = bufferFactory;
     _projectionBufferFactory = projectionBufferFactory;
     _editorOperationsFactory = editorOperationsFactory;
     _textBufferUndoManagerProvider = textBufferUndoManagerProvider;
     _editorFactory = editorFactory;
     _rtfBuilderService = rtfBuilderService;
     _intellisenseSessionStackMap = intellisenseSessionStackMap;
     _smartIndenterService = smartIndenterService;
     _windowFactoryService = windowFactoryService;
     _waitIndicator = waitIndicator;
 }
开发者ID:Rickinio,项目名称:roslyn,代码行数:25,代码来源:InteractiveWindowProvider.cs

示例3: NavigationBarControllerFactoryService

 public NavigationBarControllerFactoryService(
     IWaitIndicator waitIndicator,
     [ImportMany] IEnumerable<Lazy<IAsynchronousOperationListener, FeatureMetadata>> asyncListeners)
 {
     _waitIndicator = waitIndicator;
     _asyncListener = new AggregateAsynchronousOperationListener(asyncListeners, FeatureAttribute.NavigationBar);
 }
开发者ID:Rickinio,项目名称:roslyn,代码行数:7,代码来源:NavigationBarControllerFactoryService.cs

示例4: FixMultipleOccurrencesService

 public FixMultipleOccurrencesService(
     ICodeActionEditHandlerService editHandler,
     IWaitIndicator waitIndicator)
 {
     _editHandler = editHandler;
     _waitIndicator = waitIndicator;
 }
开发者ID:SoumikMukherjeeDOTNET,项目名称:roslyn,代码行数:7,代码来源:FixMultipleOccurrencesService.cs

示例5: TextStructureNavigatorProvider

 internal TextStructureNavigatorProvider(
     ITextStructureNavigatorSelectorService selectorService,
     IContentTypeRegistryService contentTypeService,
     IWaitIndicator waitIndicator)
     : base(selectorService, contentTypeService, waitIndicator)
 {
 }
开发者ID:manojdjoshi,项目名称:dnSpy,代码行数:7,代码来源:TextStructureNavigatorProvider.cs

示例6: AutomaticLineEnderCommandHandler

 public AutomaticLineEnderCommandHandler(
     IWaitIndicator waitIndicator,
     ITextUndoHistoryRegistry undoRegistry,
     IEditorOperationsFactoryService editorOperations)
     : base(waitIndicator, undoRegistry, editorOperations)
 {
 }
开发者ID:SoumikMukherjeeDOTNET,项目名称:roslyn,代码行数:7,代码来源:AutomaticLineEnderCommandHandler.cs

示例7: CSharpRenameTrackingCodeFixProvider

 public CSharpRenameTrackingCodeFixProvider(
     IWaitIndicator waitIndicator,
     ITextUndoHistoryRegistry undoHistoryRegistry,
     [ImportMany] IEnumerable<IRefactorNotifyService> refactorNotifyServices)
     : base(waitIndicator, undoHistoryRegistry, refactorNotifyServices)
 {
 }
开发者ID:XieShuquan,项目名称:roslyn,代码行数:7,代码来源:CSharpRenameTrackingCodeFixProvider.cs

示例8: SuggestedActionWithPreview

 public SuggestedActionWithPreview(
     Workspace workspace, ITextBuffer subjectBuffer, ICodeActionEditHandlerService editHandler, 
     IWaitIndicator waitIndicator, CodeAction codeAction, object provider, 
     IAsynchronousOperationListener operationListener) 
     : base(workspace, subjectBuffer, editHandler, waitIndicator, codeAction,
           provider, operationListener, actionSets: null)
 {
 }
开发者ID:genlu,项目名称:roslyn,代码行数:8,代码来源:SuggestedActionWithPreview.cs

示例9: ExtractMethodCommandHandler

 public ExtractMethodCommandHandler(
     ITextBufferUndoManagerProvider undoManager,
     IEditorOperationsFactoryService editorOperationsFactoryService,
     IInlineRenameService renameService,
     IWaitIndicator waitIndicator) :
     base(undoManager, editorOperationsFactoryService, renameService, waitIndicator)
 {
 }
开发者ID:Rickinio,项目名称:roslyn,代码行数:8,代码来源:ExtractMethodCommandHandler.cs

示例10: RenameCommandHandler

 public RenameCommandHandler(
     InlineRenameService renameService,
     IEditorOperationsFactoryService editorOperationsFactoryService,
     IWaitIndicator waitIndicator)
 {
     _renameService = renameService;
     _editorOperationsFactoryService = editorOperationsFactoryService;
     _waitIndicator = waitIndicator;
 }
开发者ID:jkotas,项目名称:roslyn,代码行数:9,代码来源:RenameCommandHandler.cs

示例11: AbstractEditorFactory

        protected AbstractEditorFactory(Package package)
        {
            _package = package ?? throw new ArgumentNullException(nameof(package));
            _componentModel = (IComponentModel)ServiceProvider.GetService(typeof(SComponentModel));

            _editorAdaptersFactoryService = _componentModel.GetService<IVsEditorAdaptersFactoryService>();
            _contentTypeRegistryService = _componentModel.GetService<IContentTypeRegistryService>();
            _waitIndicator = _componentModel.GetService<IWaitIndicator>();
        }
开发者ID:GuilhermeSa,项目名称:roslyn,代码行数:9,代码来源:AbstractEditorFactory.cs

示例12: FixMultipleOccurrencesService

 public FixMultipleOccurrencesService(
     ICodeActionEditHandlerService editHandler,
     IWaitIndicator waitIndicator,
     [ImportMany] IEnumerable<Lazy<IAsynchronousOperationListener, FeatureMetadata>> asyncListeners)
 {
     _editHandler = editHandler;
     _waitIndicator = waitIndicator;
     _listener = new AggregateAsynchronousOperationListener(asyncListeners, FeatureAttribute.LightBulb);
 }
开发者ID:Eyas,项目名称:roslyn,代码行数:9,代码来源:FixMultipleOccurrencesService.cs

示例13: SuggestedActionWithFlavors

 protected SuggestedActionWithFlavors(
     Workspace workspace,
     ITextBuffer subjectBuffer,
     ICodeActionEditHandlerService editHandler,
     IWaitIndicator waitIndicator,
     CodeAction codeAction,
     object provider) : base(workspace, subjectBuffer, editHandler, waitIndicator, codeAction, provider)
 {
 }
开发者ID:SoumikMukherjeeDOTNET,项目名称:roslyn,代码行数:9,代码来源:SuggestedActionWithFlavors.cs

示例14: AbstractRenameTrackingCodeFixProvider

 protected AbstractRenameTrackingCodeFixProvider(
     IWaitIndicator waitIndicator,
     ITextUndoHistoryRegistry undoHistoryRegistry,
     IEnumerable<IRefactorNotifyService> refactorNotifyServices)
 {
     _waitIndicator = waitIndicator;
     _undoHistoryRegistry = undoHistoryRegistry;
     _refactorNotifyServices = refactorNotifyServices;
 }
开发者ID:CAPCHIK,项目名称:roslyn,代码行数:9,代码来源:AbstractRenameTrackingCodeFixProvider.cs

示例15: PreviewChangesSuggestedAction

 internal PreviewChangesSuggestedAction(
     Workspace workspace,
     ITextBuffer subjectBuffer,
     ICodeActionEditHandlerService editHandler,
     IWaitIndicator waitIndicator,
     PreviewChangesCodeAction codeAction,
     object provider)
     : base(workspace, subjectBuffer, editHandler, waitIndicator, codeAction, provider)
 {
 }
开发者ID:SoumikMukherjeeDOTNET,项目名称:roslyn,代码行数:10,代码来源:PreviewChangesSuggestedAction.cs


注:本文中的IWaitIndicator类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。