Bound property not updating upon change

In my Blazor app, I have the following input field in a view: ``` <input bind="@amount.Display" type="text" /> ``` This is bound to a property defined with the following accessors: ``` get { r...

20 Oct at 05:59

React+ASP.NET.Core : No 'Access-Control-Allow-Origin' header is present on the requested resource

Actually this is not a post,I know a part of the title asked many times in [stackoverflow](http://stackoverflow.com) community, I read all posts, and answers, but I think my problem and technologies ...

7 Jun at 06:35

DateTime Overflow in .NET

We have a Scala/Java back end that is generating the equivalent of `DateTime.MaxValue` in .NET. I am sent the following date as a string "9999-12-31T23:59:59.999999999Z". If I used `DateTime.TryPar...

19 Oct at 10:24

How can I bind complex Lists in ASP.NET Core RazorPages

I'm new to ASP.NET Core Razor Pages. I try to retrieve a List<> from a Page via POST. If I bind primitive Data types, I didn't face any problems. However, If I want to pass data from my Page to the Se...

Remove http client logging handler in ASP.NET Core

When using the `HttpClientFactory` of .NET Core, is it possible to somehow remove the default `LoggingHttpMessageHandler`? I expect something like the below but it doesn't seem to exists ``` servic...

12 Mar at 13:58

Correct way to start a BackgroundService in ASP.NET Core

I have implemented a BackgroundService in an ASP.NET Core 2.1 application: ``` public class MyBackgroundService : BackgroundService { protected override Task ExecuteAsync(CancellationToken stoppi...

Complex Linq Grouping

I'm new to Stack Overflow, but tried to put as much information I have following class structure ``` public class ItemEntity { public int ItemId { get; set; } public int GroupId { get; set; ...

22 Oct at 17:57

How can I hide response code 200 with Swashbuckle.AspNetCore?

Ciao, I'm working on a asp.net web api core (target framework .NET Core 2.1). I'm documenting my API using Swagger specifications. I chose to use Swashbuckle.AspNetCore library. I have one simple cr...

Refit and authorization header

Currently, I am adding an authorization header to my request like this: File: SomeFile.cs ``` public interface ITestApi { [Get("/api/test/{id}")] Task<string> GetTest([Header("Authorization"...

11 May at 09:1

How to force Serilog to log only my custom log messages

I configured Serilog in `appsettings.json` to log entries into via tcp in my `asp net core web api` app the following way: ``` { "Serilog": { "Using": [ "Serilog.Sinks.Network" ], "Minimum...

20 Oct at 18:58

C# Predefined type 'System.Object' is not defined or imported

In project, I changed the all projects name than after reloading all project that time many errors were showing approx . And mainly all errors are related to system namespace like - `System.Object`...

19 Oct at 07:41

How to add method description in Swagger UI in WebAPI Application

I am using Swagger as my API tooling framework and it is working out great so far. I just came across this page [https://petstore.swagger.io/](https://petstore.swagger.io/) and saw how each method ha...

Validation in Domain Driven Design

Our team is starting a new project following Domain Driven Design (DDD). At the high level, we have an API on the top of our domain which enables a client to perform operations on the domain. One of t...

How to share source code via NuGet packages for use in .NET Core projects

I want to make small pieces of source code (e.g. helper classes) available for use in .NET Core projects (.csproj). At this point I packaged the source code with NuGet in many different ways according...

Is it necessary to check null values with constructor injection?

I'm using .NET Core constructor injection. In a code review from a colleague, he raised the question if I should check for null values on injected dependencies in controllers. Since the framework is ...

ServiceStack api/auth/credentials returns 404 on frontend migration

I'm changing my frontend to React, so I started a new project with VS2015. I already configured ServiceStack with my old API services. Everything works fine except by one: api/auth/credentials. I get...

18 Oct at 15:41

Vue JS returns [__ob__: Observer] data instead of my array of objects

I've created a page where I want to get all my data from the database with an API call, but I'm kinda new to VueJS and Javascript aswell and I don't know where I'm getting it wrong. I did test it with...

Why does Python.NET use the base method instead of the method from a derived class?

[this](https://github.com/pythonnet/pythonnet/pull/756) I have a problem with Python.NET inheritance. I have a DLL which consists of the following code: ``` using System; namespace InheritanceTest ...

24 Oct at 09:48

'dotnet build' command not finding NuGet packages (they exist)

I'm trying to build my .NET Core 2.1 application from the command-line on my Jenkins server. It builds fine on my local machine (Windows 10, Visual Studio 2017 Enterprise), and if I manually build it ...

26 Jun at 00:40

How can I automatically generate refit interfaces from existing Controllers?

I am investigating the refit library and evaluating if I is worth integrating in my project. Let's say I have this Controller that accepts a `POST` message with a specific contract: ``` [Route("api...

17 Oct at 21:23

Need help troubleshooting a .NET Core 2.1 API in a linux Docker

We have a bad situation with an API we are running in a Linux Docker on AWS ECS. The API is running with ASP.NET Core 2.1 now, but we also had the problem on ASP.NET 2.0 (we hoped upgrading to 2.1 wou...

24 Mar at 06:5

TypeScript: Object.keys return string[]

When using `Object.keys(obj)`, the return value is a `string[]`, whereas I want a `(keyof obj)[]`. ``` const v = { a: 1, b: 2 } Object.keys(v).reduce((accumulator, current) => { accumula...

17 Oct at 13:48

Xamarin essentials geolocation is not working, GetLocationAsync breaks out of try

So I want to get the users location and reverse geocode it to get the address plus street number. Therefore I installed the package Xamarin.Essentials which is in pre-release. I wanted to use the geo...

What is the purpose of : public static DateTime ToDateTime(DateTime value) in the .NET Framework?

I am maintaining an existing project, and I found this line of code: ``` Datetime someDate = ....; var anotherDateTime = Convert.ToDateTime(someDate); ``` At first, I expected that `someDate` is co...

17 Oct at 12:31

Download .xls file using Angular: Unexpected token P in JSON at position 0 at JSON.parse (<anonymous>)

I have the following server method for returning an `byte[]` for an `xls` document stored in `Azure Blob Storage`. ``` [FunctionName("ReadBatchFile")] public async static Task<HttpResponseMes...

17 Oct at 08:31