Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add all Via generated proxies to static map by settings decorator #35

Merged
merged 1 commit into from
Nov 2, 2022

Conversation

devodo
Copy link
Owner

@devodo devodo commented Nov 2, 2022

The ability to statically lookup a Via instance by proxy object was previously added here #21.

However, mappings were only added when proxies were created from the static Via.Proxy methods.

This change adds a decorator that gets called when proxies are generated by all Vias. The decorator adds static Via lookup mappings on all proxies by default and can be customised on DiverterSettings.

@devodo devodo merged commit e8c862f into main Nov 2, 2022
@devodo devodo deleted the task/via_proxy_map_by_decorator branch November 2, 2022 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant