These are chat archives for damianh/Cedar

20th
May 2015
Mathew McLoughlin
@mat-mcloughlin
May 20 2015 08:31
Who blocks gitter!
João Bragança
@thefringeninja
May 20 2015 08:31
communists that want to give everyone free health care
Damian Hickey
@damianh
May 20 2015 08:31
ass-backwards shops
Mathew McLoughlin
@mat-mcloughlin
May 20 2015 08:32
The NHS that's who
João Bragança
@thefringeninja
May 20 2015 08:32
:gb:
Damian Hickey
@damianh
May 20 2015 08:32
:hospital:
João Bragança
@thefringeninja
May 20 2015 08:32
there's a lot of RED in that flag
Mathew McLoughlin
@mat-mcloughlin
May 20 2015 08:32
;)
I'm even having to manage vms from my phone today. But enough of that. Thanks for the link @damianh
Damian Hickey
@damianh
May 20 2015 08:37
@mat-mcloughlin you have a command handling question?
Yves Reynhout
@yreynhout
May 20 2015 08:37
who hasn't?
Damian Hickey
@damianh
May 20 2015 08:37
hah
Mathew McLoughlin
@mat-mcloughlin
May 20 2015 08:42
Yeah it was about dealing with commands outside of http
Not looked in huge detail but given I'm doing it on my phone I believe I can be excised ;)
Yves Reynhout
@yreynhout
May 20 2015 08:43
excised, now there'z a
word
Mathew McLoughlin
@mat-mcloughlin
May 20 2015 08:44
:(
Also command validation
João Bragança
@thefringeninja
May 20 2015 08:44
onion layer.
Mathew McLoughlin
@mat-mcloughlin
May 20 2015 10:03
I don't like onions. But I guess you mean I can use the resolver and hook it up to whatever I want
Cedar.CommandHandling contains the module, pipes, resolver etc.
You can resolve a handler and invoke it or
João Bragança
@thefringeninja
May 20 2015 10:06
yeah, the pipe stuff gives you a nice 'syntactic sugar' over just making the onion yourself
Damian Hickey
@damianh
May 20 2015 10:06
you can use the Cedar.CommandHandling.Http + Cedar.CommandHandling.Clientto invoke it via the full http pipeline (embedded).
There is also a command versioning strategy (i.e. backwards compatible)
Mathew McLoughlin
@mat-mcloughlin
May 20 2015 10:17
Cool
Also validation? Just stick something in the pipeline?
Yves Reynhout
@yreynhout
May 20 2015 10:21
Yep
Mathew McLoughlin
@mat-mcloughlin
May 20 2015 10:23
Ok, is there anywhere to specify a global pipe?
Again lazy web as on my phone :)
:(
Damian Hickey
@damianh
May 20 2015 10:26
Thought about that
module level pipes
Didn't quite bake it out in my head
but should be possible.
Mathew McLoughlin
@mat-mcloughlin
May 20 2015 10:26
A la Nancy?
Damian Hickey
@damianh
May 20 2015 10:26
a la
Mathew McLoughlin
@mat-mcloughlin
May 20 2015 10:27
Would be useful for shit like validation auth etc
Yves Reynhout
@yreynhout
May 20 2015 10:46
I don't get the need for global.
Command implies use case implies specific
Damian Hickey
@damianh
May 20 2015 12:43
because of the strong typing For<T> global can only be done for orthogonal stuff such as Auth maybe.
It would be very limited anyway.
João Bragança
@thefringeninja
May 20 2015 12:54
logging (or a really generic and near-useless security check) is probably the only thing that cuts across all commands equally
Damian Hickey
@damianh
May 20 2015 12:55
yep - and one could do that at infra level anyway (another middleware for example0
Mathew McLoughlin
@mat-mcloughlin
May 20 2015 12:56
You don't think some validation middle wear would cut across too?
João Bragança
@thefringeninja
May 20 2015 12:56
no
since each validator is command specific
unless you did something like resolve it out of a container at handle time. but you know what I think about containers.
Mathew McLoughlin
@mat-mcloughlin
May 20 2015 12:57
Lol
Containers are the best!!
And yes that's what I'm suggesting :P
João Bragança
@thefringeninja
May 20 2015 12:57
you die now
Mathew McLoughlin
@mat-mcloughlin
May 20 2015 12:58
Lol
I take it back
João Bragança
@thefringeninja
May 20 2015 12:58
first of all your validators should not have any ctor dependencies. second of all how is it that you don't know at compile time which validator you are using?
Mathew McLoughlin
@mat-mcloughlin
May 20 2015 12:58
ok ok I submit
João Bragança
@thefringeninja
May 20 2015 12:59
maybe if you were shipping a product where you let your customer plugin their own validators. maybe
Mathew McLoughlin
@mat-mcloughlin
May 20 2015 12:59
just the endpoint I currently use resolves ivalidator <T> for the commands before dispatching
Mathew McLoughlin
@mat-mcloughlin
May 20 2015 13:01
Aye that's cool
Damian Hickey
@damianh
May 20 2015 17:42
blob
Hello thar
Mathew McLoughlin
@mat-mcloughlin
May 20 2015 18:00
Whole lot of green ther
Yves Reynhout
@yreynhout
May 20 2015 18:01
Refactor time ....
Mathew McLoughlin
@mat-mcloughlin
May 20 2015 18:03
Wai
You guys building another ES?
Yves Reynhout
@yreynhout
May 20 2015 18:07
Yup, one for each day of the year ;)
Mathew McLoughlin
@mat-mcloughlin
May 20 2015 18:09
I'm gonna have a nosey ;)
Damian Hickey
@damianh
May 20 2015 19:37
Yep. This one is much more compatible with GES.
Also async, PCL (will be easy to support dnxcore50), simpler than NES in some ways, but also less features too (compression/encryption etc)