Skip to content

Fix inheritance and add servicecollection - #850

Merged
ebozduman merged 3 commits into
minio:masterfrom
martijn00:servicecollection
Aug 29, 2023
Merged

ebozduman merged 3 commits into
minio:masterfrom
martijn00:servicecollection

Conversation

@martijn00

Copy link
Copy Markdown
Contributor

@ebozduman

Copy link
Copy Markdown
Contributor

@martijn00 ,

Will do the review in during CA work hours...

@ebozduman ebozduman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@martijn00

Could you add some explanation/information about this PR, like what inheritance issue is fixed by this PR and why service collection is added, what is it going to help/solve etc, briefly in just one or two sentences?

@martijn00

Copy link
Copy Markdown
Contributor Author

The IMinioClient interface didn't inherit the 2 other interfaces, but the implementation did implement them. For that reason the methods in the interface were also duplicated. I've removed that.

I'm now working towards a more interface based implementation of minio so that it the standard DI container of .net can use it.

This is a first step towards an easier way to implement Minio. You can call AddMinio in your normal api build and resolve IMinioClient or IMinioClientFactory through DI or the service locator after that

@ebozduman ebozduman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

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.

2 participants