docker compose up -e <service>:<env>:<value>
but i don't think that's a thing
.MapGet("some/url/structure", (string foo, int bar) => HandleRequest(foo, bar));
foo
and bar
there, can you just give it MyRequestObject
that has properties Foo
and Bar
and have it do model binding?
Result<T>
type to let you signal error results without exceptions, for cases where errors are expected and not exceptional
return Results.NotFound<User>(query.UserId);
rather than having to throw new UserNotFoundException(query.UserId);
var result = await _mediator.Send(query);
return MapToResponse(result);
that looks promising but might require consuming applications to write binders for everything
https://duck.com?id=help&subject=me
That's a string not a context, is there a simple way to convert it to something so I can just go Query["id"] or something similar?
nevermind, typing it out I remember about HttpUtlity ... duh, thanks for being my rubber duck guys
https://docs.microsoft.com/en-us/dotnet/api/system.web.httputility.parsequerystring?view=net-6.0