• Getting Started
  • Tutorials
  • Api Documentation
Show / Hide Table of Contents
  • Onbox.Abstractions.V8
    • IContainer
    • IContainerPipeline
    • IContainerResolver
    • IContainerResolverPipeline
    • IHttpService
    • IJsonService
    • ILoggingService
    • IMapper
    • IMessageService
    • IProgressIndicator
  • Onbox.Core.V8
    • CoreExtensions
    • OnboxExceptionBase
  • Onbox.Core.V8.Http
    • HttpExtensions
    • HttpInterceptor
    • HttpService
    • HttpSettings
    • IHttpInterceptor
  • Onbox.Core.V8.Json
    • JsonExtensions
    • JsonService
  • Onbox.Core.V8.Logging
    • FileLoggingService
    • FileLoggingSettings
  • Onbox.Core.V8.Mapping
    • IMapperActionManager
    • IMapperOperator
    • Mapper
    • MapperActionManager
    • MapperOperator
  • Onbox.Core.V8.Messaging
    • MessageDebugService
  • Onbox.Core.V8.ReactFactory
    • Debouncer
    • Interval
    • ReactFactory
  • Onbox.Core.V8.Reporting
    • ProgressCancelledException
    • ProgressConsoleDebugIndicator
  • Onbox.Di.V8
    • Container
  • Onbox.Mvc.Abstractions.V8
    • IMvcComponent
    • IMvcLifecycleComponent
    • IMvcLifecycleView
    • IMvcView
    • IMvcViewModal
    • IMvcViewModeless
  • Onbox.Mvc.Revit.Abstractions.V8
    • IRevitMvcViewBase
  • Onbox.Mvc.V8
    • TitleVisibility
  • Onbox.Revit.Abstractions.V8
    • IRevitAppData
  • Onbox.Revit.V8
    • ContainerProviderAttribute
    • IRevitContext
    • IRevitExternalApp
    • RevitAppData
    • RevitContainerProviderBase
    • RevitLanguage
  • Onbox.Revit.V8.Applications
    • ContainerPipelineExtensions
    • RevitApp
    • RevitAppBase<TContainer>
  • Onbox.Revit.V8.Async
    • IRevitEventHandler
    • RevitAsyncExtensions
    • RevitAsyncSettings
    • RevitExternalHandler
  • Onbox.Revit.V8.Commands
    • IRevitDestroyableCommand
    • RevitAppCommand<TApplication>
    • RevitContainerCommand<TContainerPipeline>
    • RevitContainerCommandBase<TContainerPipeline, TContainer>
  • Onbox.Revit.V8.ExtensibleStorage
    • AccessLevel
    • IRevitJsonStorage<T>
    • RevitExtensibleStorageEntensions
    • RevitExtensibleStorageSettings
    • RevitJsonStorage<T>
    • RevitSchemaSettings
    • RevitStorageBuilder
  • Onbox.Revit.V8.UI
    • ImageManager
    • IRibbonManager
    • IRibbonPanelManager
    • IRibbonTabManager
    • RibbonHelpers
    • RibbonManager
    • RibbonPanelManager
    • RibbonTabManager
  • Onbox.Store.V8
    • IStorageSubscription
    • IStore<TState>
    • IStoreAction<TState, TSlice>
    • StateEntry<TState>
    • StorageSubscription
    • Store<TState>
    • StoreExtensions

Interface IRevitEventHandler

Provides a way to run asyncronous taks on Revit's main thread

Inherited Members
Autodesk.Revit.UI.IExternalEventHandler.Execute(Autodesk.Revit.UI.UIApplication)
Autodesk.Revit.UI.IExternalEventHandler.GetName()
Namespace: Onbox.Revit.V8.Async
Assembly: Onbox.Revit.dll
Syntax
public interface IRevitEventHandler : IExternalEventHandler

Methods

| Improve this Doc View Source

CancelAll()

Cancels all queue tasks

Declaration
void CancelAll()
| Improve this Doc View Source

GetQueueCount()

Gets the number of queue tasks

Declaration
int GetQueueCount()
Returns
Type Description
System.Int32
| Improve this Doc View Source

RunAsync(Action<UIApplication>, CancellationTokenSource)

The action will run by Revit as soon as its thread is available

Declaration
Task RunAsync(Action<UIApplication> action, CancellationTokenSource cancelSource = null)
Parameters
Type Name Description
System.Action<Autodesk.Revit.UI.UIApplication> action
System.Threading.CancellationTokenSource cancelSource
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

RunAsync<T>(Func<UIApplication, T>, CancellationTokenSource)

The action will run by Revit as soon as its thread is available

Declaration
Task<T> RunAsync<T>(Func<UIApplication, T> action, CancellationTokenSource cancellationToken = null)
Parameters
Type Name Description
System.Func<Autodesk.Revit.UI.UIApplication, T> action
System.Threading.CancellationTokenSource cancellationToken
Returns
Type Description
System.Threading.Tasks.Task<T>
Type Parameters
Name Description
T
  • Improve this Doc
  • View Source
Back to top Generated by DocFX