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

wopss: document factories #1161

Merged
merged 3 commits into from
Feb 25, 2023
Merged

wopss: document factories #1161

merged 3 commits into from
Feb 25, 2023

Conversation

rfuzzo
Copy link
Member

@rfuzzo rfuzzo commented Feb 16, 2023

document factories 2.0

Implemented:

  • remove Locator pattern from wkit.app
#1107

@rfuzzo rfuzzo requested a review from WopsS February 16, 2023 13:46

namespace WolvenKit.App.Factories;

public interface IFactory<T> where T : class
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I meant previously was that this should be something like https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.logging.ilogger?view=dotnet-plat-ext-7.0. With a default method for creation, then where service is registered you can have a generic concrete class that creates an instance of T.

@rfuzzo rfuzzo merged commit 03cfc14 into main Feb 25, 2023
@rfuzzo rfuzzo deleted the wopss/remove-locator-pattern branch February 25, 2023 14:55
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.

None yet

2 participants