Marc Denman
c01f778bf9
Add LogTrace to IOcelotLogger
...
Previously only LogDebug and LogError were implemented, however this
could/will lead to very noisy logging. Implementing trace should allow a
better seperation when debugging.
2017-03-14 10:06:53 +00:00
Marc Denman
a007887461
Add MiddelwareName into base OcelotMiddleware
...
Following TomPallister suggestion, it makes sense to call GetType only
once and in the constructor (middlewares are only instantiated once). I
have also taken the oppturniuty to add it as a property on the base
middleware allowing any other middleware to utlise it as well.
2017-03-14 09:45:07 +00:00
Marc Denman
0c33323352
Change HttpStatusCodeMapper not to wrap responses
...
As part of #66 we realised that the implementation of
IErrorToHttpStatusCodeMapper would always return a wrapped StatusCode
within an OK response, in turn meaning that ResponderMiddleware would
never fall into the else branch for returning a 500.
This commit removes the wrapping of the status code and removes the unused
logic for generating the 500 status code, giving the mapper full
responsbility for generating the correct status code.
2017-03-14 09:15:19 +00:00
Marc Denman
3fb83077fb
Changed log messages to be a bit more descriptive
2017-03-13 17:23:09 +00:00
Marc Denman
0ec7fc44ad
Change all ctor's to use IOcelotLoggerFactory
...
As part of #35 we are we are standardising on using IOcelotLoggerFactory
over the default ILogger for DI purposes. Following a sln search, the use
of ILogger was only found in one place (FileOcelotConfigurationCreator)
and it's corresponding tests.
This commit changes them and ensures the unit tests still pass.
2017-03-13 11:44:02 +00:00
TomPallister
c09cec67c6
didnt need to add this
2017-03-12 22:39:36 +00:00
TomPallister
d80b73a0d2
change to get appveyor to pick up all tests from http://stackoverflow.com/questions/42747868/vs-2017-not-discovering-tests-if-net-core
2017-03-12 22:35:32 +00:00
geffzhang
5f3d047475
Merge pull request #17 from TomPallister/develop
...
upgraded to vs2017
2017-03-12 19:48:04 +08:00
Tom Pallister
69f208b200
Merge pull request #64 from TomPallister/feature/upgrade-vs-2017
...
Feature/upgrade vs 2017
2017-03-12 10:42:04 +00:00
TomPallister
0e74ccea07
build process in wiki now
2017-03-12 10:30:47 +00:00
TomPallister
c4ca3d7b13
back to path as change didnt effect app veyor
2017-03-12 10:05:38 +00:00
TomPallister
882bc6bfd3
removed unused packages and made a change to hopefully make this work in appveyor
2017-03-12 10:02:54 +00:00
TomPallister
5796cea935
specific cake version
2017-03-11 09:17:09 +00:00
TomPallister
6aefa8d1b3
specific cake version
2017-03-11 09:16:56 +00:00
TomPallister
efec217cab
changes suggest by mr mash
2017-03-11 09:13:50 +00:00
TomPallister
490de4c45d
updated sln..for some reason this didnt happen with vs2017 upgrade
2017-03-09 17:18:02 +00:00
TomPallister
c49a1c9004
removed a bunch of orig files checked in by accident
2017-03-09 17:00:51 +00:00
TomPallister
6f65d9bab0
upgraded to vs2017
2017-03-09 17:00:15 +00:00
geffzhang
7d4ef438b9
Merge pull request #16 from TomPallister/develop
...
refactor: HttpClientCache
2017-03-09 12:07:33 +08:00
tom.pallister
ffd4e364f6
removed default headers
2017-03-08 13:10:44 +00:00
Tom Pallister
9bb86122f8
Merge pull request #57 from geffzhang/feature/Optimization-HttpClient-instance
...
Feature/optimization http client instance
2017-03-08 12:52:24 +00:00
geffzhang
5728530942
Update global.json
...
revert global.json sdk to 3133
2017-03-07 08:41:28 +08:00
geffzhang
2e1708ef1e
Merge branch 'develop' into feature/Optimization-HttpClient-instance
2017-03-07 08:37:16 +08:00
geffzhang
23ad6ed264
refactor: HttpClientCache and remove not used code current
2017-03-07 08:29:03 +08:00
Tom Pallister
717cee1428
Merge pull request #61 from TomPallister/feature/thread-safe
...
Feature/thread safe
2017-03-06 14:35:52 +00:00
tom.pallister
f443575185
thread safe test passing on windows
2017-03-06 13:24:36 +00:00
Tom Gardham-Pallister
f0dcefff38
test fails on my mac..
2017-03-06 07:34:07 +00:00
Tom Gardham-Pallister
fac2346161
added thread safe test
2017-03-06 07:33:55 +00:00
Tom Pallister
5690d17310
Merge pull request #59 from TomPallister/feature/remove-cookie-container
...
Remove use of CookieContainer
2017-03-06 02:28:48 +00:00
geffzhang
9acabed31f
Merge pull request #15 from TomPallister/develop
...
merge newest code
2017-03-06 07:24:48 +08:00
TomPallister
c787202374
I realised we can get rid of the cookie container as cookies are just sent as a header called cookie...
2017-03-05 18:05:20 +00:00
TomPallister
d0118ea4a3
updated readme
2017-03-05 17:43:13 +00:00
TomPallister
3d232efdc1
updated readme
2017-03-05 17:41:30 +00:00
TomPallister
74d23d0593
removed nuget thing
2017-03-05 17:38:59 +00:00
TomPallister
01fb3c6355
added version to readme
2017-03-05 17:37:06 +00:00
TomPallister
9dba870216
moved readme aroudn
2017-03-05 17:34:26 +00:00
TomPallister
c3c37bc785
moved readme into docs
2017-03-05 17:33:18 +00:00
Tom Pallister
a70a279487
Merge pull request #58 from TomPallister/feature/refactor-config-creator
...
Feature/refactor config creator
2017-03-05 17:08:07 +00:00
TomPallister
558a0dfdab
finished refactoring config cretor
2017-03-05 16:56:41 +00:00
geffzhang
10db534008
Refactor HttpClientHttpRequester Cache HttpClient
2017-03-04 18:18:00 +08:00
geffzhang
1f2d77e8f9
Merge pull request #14 from TomPallister/develop
...
fix:updated readme to explain how to run integration tests
2017-03-04 12:39:55 +08:00
Tom Gardham-Pallister
8bbd781820
updated file options
2017-03-02 09:18:53 +00:00
Tom Gardham-Pallister
b44c02510a
unit test for qos
2017-03-01 23:34:56 +00:00
Tom Gardham-Pallister
0a2d7a6922
qos options creator in own class
2017-03-01 23:28:32 +00:00
Tom Gardham-Pallister
6661cb5f32
use config tests
2017-03-01 23:15:30 +00:00
Tom Gardham-Pallister
034732ce90
added lame test for service config creator
2017-03-01 23:12:00 +00:00
Tom Gardham-Pallister
fff743ccf8
pulling out service config cretor
2017-03-01 12:42:37 +00:00
Tom Gardham-Pallister
d4119ab33d
extracted thing that creates request id key
2017-03-01 08:11:39 +00:00
Tom Gardham-Pallister
c85ea41951
refactoring ocelot config creation process
2017-03-01 07:54:07 +00:00
TomPallister
1d216f6863
updated readme to explain how to run integration tests
2017-02-26 10:44:40 +00:00