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

Declarative Limits #3

Merged
merged 6 commits into from
Aug 13, 2018
Merged

Declarative Limits #3

merged 6 commits into from
Aug 13, 2018

Conversation

jezzsantos
Copy link
Contributor

@jezzsantos jezzsantos commented Aug 12, 2018

I've updated all ServiceStack nugets to 4.5.14, and all testing tools to latest versions, in preparation for a future pull request as discussed: #2

There is one outstanding unit test that I cannot fathom, and hoping you would resolve.
I'm not having a great time with XUnit (not familiar with it) and tests that need an AppHost running. Can you help?

@jezzsantos jezzsantos mentioned this pull request Aug 12, 2018
@jezzsantos jezzsantos changed the title Updated latest Nugets Declarative Limits Aug 12, 2018
@jezzsantos
Copy link
Contributor Author

At this point, I think I have a ILimitProvider for you.
I'd like to write some integration tests to prove it works as advertised, can you help me do that in your codebase? (like where and what language). Perhaps you go first?

@wwwlicious
Copy link
Owner

Thanks @jezzsantos
I'll try and make some time during next week to look at it. I've found the easiest way to do integration testing is to create a project with a selfhosted app as an xunit collection fixture. You can then create a client and get end-to-end testing. I'll put something together for the config based rate limiter for you to work from.

@jezzsantos
Copy link
Contributor Author

Thanks. That will be a great way to set the pattern for this project.

@wwwlicious
Copy link
Owner

oh and thanks for the PR work, much appreciated. 👍

@jezzsantos
Copy link
Contributor Author

Cheers, looking forward to using it

@jezzsantos
Copy link
Contributor Author

jezzsantos commented Aug 13, 2018

Why does the nuspec include a specific (explicit) dependency on ServiceStack.Server?

Can't that be removed?

The consumer really does not need either of these assemblies installed in their service for this plugin, do they?

  • ServiceStack.OrmLite
  • ServiceStack.Server

@wwwlicious
Copy link
Owner

ServiceStack.Server is the package plugins should use in general afaik.

I still have to update the projects to vs2017 format at which point it would be the only package referenced.

@wwwlicious
Copy link
Owner

I'll merge this in for now then convert the projects while I sort out the tests

@wwwlicious wwwlicious merged commit cd12bed into wwwlicious:master Aug 13, 2018
@jezzsantos
Copy link
Contributor Author

Yeah, Im not so sure that you need the explicit reference to ServiceStack.Server though, just to consume the plugin.

@jezzsantos
Copy link
Contributor Author

thanks for all that 👍

@wwwlicious
Copy link
Owner

the goal of the server package is to be the minimum required to run a servicestack service.
You can't with less, the plugin might not require it all, but you can't use the plugin in a project that doesn't have all it's dependencies.

Perhaps in the new packaging world it doesn't make as much sense but it is still valid i.e. whether you install that package or not, you'll have all it's dependencies...

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