Skip to content

AsynchronousOperationListener cleanup#48825

Open
jasonmalinowski wants to merge 4 commits intodotnet:mainfrom
jasonmalinowski:async-waiter-cleanup
Open

AsynchronousOperationListener cleanup#48825
jasonmalinowski wants to merge 4 commits intodotnet:mainfrom
jasonmalinowski:async-waiter-cleanup

Conversation

@jasonmalinowski
Copy link
Member

The general pattern that's expected for our code is you import IAsynchronousOperationListenerProvider if you want to say when async operations are happening (that gives you the limited API to reference operations), and if you are in tests you can import the concrete type to get everything. We also had some extension methods that were doing explicit casting from the interface to the concrete type that were working around this pattern, and implicitly hiding the fact that some code was dead.

Commit at a time recommended.

@jasonmalinowski jasonmalinowski requested review from a team as code owners October 21, 2020 22:35
@Dotnet-GitSync-Bot
Copy link
Collaborator

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@jasonmalinowski jasonmalinowski changed the title AsynchronouseOperationListener cleanup AsynchronousOperationListener cleanup Oct 21, 2020
@jasonmalinowski

This comment has been minimized.

This was only casting to the concrete type to call GetListener; the
intent here is you can directly import the concrete type if you're a
test and want to wait on things.
It does nothing different than the other method -- it's just a
convenience method that takes a params array.
Nothing used this; the only caller on the Apex side of things also
didn't use it it.
@jasonmalinowski jasonmalinowski self-assigned this Oct 22, 2020
Base automatically changed from master to main March 3, 2021 23:53
@CyrusNajmabadi
Copy link
Contributor

@jasonmalinowski this PR looks gtg. Do you want to move it forward? Thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants