palapapa
palapapa
CC#
Created by Camster on 2/6/2024 in #help
Deploy Blazor Server and API to IIS in same website
Thats' a suffix
6 replies
CC#
Created by Camster on 2/6/2024 in #help
Deploy Blazor Server and API to IIS in same website
But you didn't add the /api/ prefix in your example? Just a guess
6 replies
CC#
Created by palapapa on 9/10/2023 in #help
❔ What is the purpose of `ModelBindingContext.Model`, `ModelName`, and `ModelBinderAttribute.Name`?
It seems that ModelName is just the argument name, and ModelBinderAttribute.Name and override that name. Since usually the argument name is the same as, say, some route data segment, by using ValueProvider.GetValue(context.ModelName), you can usually get the route data. I guess this is what the default model binder does, and of course this won't work with complex types. But I still don't understand what ModelBindingContext.Model is supposed to do though.
3 replies
CC#
Created by palapapa on 9/8/2023 in #help
❔ Inconsistency in the documentation of model binding for complex types?
https://webmasters.stackexchange.com/questions/90339/why-are-urls-case-sensitive Here it says the query string is case sensitive though
8 replies
CC#
Created by palapapa on 9/6/2023 in #help
❔ Is there any difference between `[Route("")]` and `[Route("/")]`?
I know that when you use [HttpGet("/")] on an action method then its template string doesn't get combined with the template string on the controller
12 replies
CC#
Created by palapapa on 9/6/2023 in #help
❔ Is there any difference between `[Route("")]` and `[Route("/")]`?
Just tried it and [HttpGet("")] didn't respond to /api/My/SomeAction. It still acted like [HttpGet("/")]
12 replies
CC#
Created by palapapa on 9/6/2023 in #help
❔ Is there any difference between `[Route("")]` and `[Route("/")]`?
I tested it and [Route("")] doesn't seem to respond to /Sample
12 replies
CC#
Created by palapapa on 9/6/2023 in #help
❔ Is there any difference between `[Route("")]` and `[Route("/")]`?
You said [Route("/")] twice?
12 replies
CC#
Created by palapapa on 8/6/2023 in #help
❔ Why doesn't every method in Collection<T> has an extension point?
I wasn't. I just discovered it and learned that it's supposed to be extendible, but then I thought about this question I just asked and it felt really weird
4 replies
CC#
Created by palapapa on 8/6/2023 in #help
❔ Same URL pages holding different states
9 replies
CC#
Created by palapapa on 8/6/2023 in #help
❔ Same URL pages holding different states
But how would the nav component know what to show if the URL is completely the same?
9 replies
CC#
Created by palapapa on 8/6/2023 in #help
❔ Same URL pages holding different states
After disabling the cache this still happens
9 replies
CC#
Created by Valwex on 7/18/2023 in #help
❔ Initializing an object
Like what @mindhardt said, if you have a init only property, then it must be set either in the constructor or in the object initializer(your first example), and it can't be set afterwards.
36 replies
CC#
Created by palapapa on 7/14/2023 in #help
❔ What's the difference between `IConfiguration.Get` and `IConfiguration.Bind`?
So is this an API doc or a doc?
54 replies
CC#
Created by palapapa on 7/14/2023 in #help
❔ What's the difference between `IConfiguration.Get` and `IConfiguration.Bind`?
Tbh I didn't read them because MS "article documentations" have always made me think they are bad
54 replies
CC#
Created by palapapa on 7/14/2023 in #help
❔ What's the difference between `IConfiguration.Get` and `IConfiguration.Bind`?
What's "bonne"? Did you mean bind?
54 replies
CC#
Created by palapapa on 7/14/2023 in #help
❔ What's the difference between `IConfiguration.Get` and `IConfiguration.Bind`?
Accidentally used a super reaction lmao
54 replies
CC#
Created by palapapa on 7/14/2023 in #help
❔ What's the difference between `IConfiguration.Get` and `IConfiguration.Bind`?
Because you would have to inject the whole IConfiguration?
54 replies
CC#
Created by palapapa on 7/14/2023 in #help
❔ What's the difference between `IConfiguration.Get` and `IConfiguration.Bind`?
Thank you. I'll read them and come back if I have more questions.
54 replies
CC#
Created by palapapa on 7/14/2023 in #help
❔ What's the difference between `IConfiguration.Get` and `IConfiguration.Bind`?
54 replies