Skip to content

Commit

Permalink
fix an error to register scoped handlers outside of revit api context
Browse files Browse the repository at this point in the history
  • Loading branch information
KennanChan committed Mar 1, 2020
1 parent a8e176c commit d19fec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Revit.Async.Shared/RevitTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public Task<TResult> Raise<THandler, TParameter, TResult>(TParameter parameter)
/// <inheritdoc />
public void Register<TParameter, TResult>(IGenericExternalEventHandler<TParameter, TResult> handler)
{
ScopedRegisteredExternalEvents.TryAdd(handler.GetType(), new ExternalEventPair(handler));
ScopedRegisteredExternalEvents.TryAdd(handler.GetType(), new ExternalEventPair(handler, () => CreateExternalEvent(handler)));
}

#endregion
Expand Down

0 comments on commit d19fec0

Please sign in to comment.