Skip to content

Commit

Permalink
Merge pull request #3 from KennanChan/dev
Browse files Browse the repository at this point in the history
fix an error to register scoped handlers outside of revit api context
  • Loading branch information
KennanChan authored Mar 1, 2020
2 parents 783fd43 + d19fec0 commit 01f7b24
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 01f7b24

Please sign in to comment.