Use MSAL Auth token to consume Web API
I have an ASP.Net Web API on which I implemented the following security: https://learn.microsoft.com/en-us/azure/active-directory/develop/active-directory-devquickstarts-webapi-dotnet It worked, I can...
- Modified
- 7 May at 07:17
c# Chunked transfer of file upload in combination with access to route parameters in ServiceStack
I'm looking to use the `IRequiresRequestStream` interface to enable large file uploads (video files) using ServiceStack (v3) and chunked transfer encoding. The standard file upload can't seem to cope ...
- Modified
- 7 Jun at 09:15
Razor & null propagation - not working under explicit C# 6 MVC 5 project
Current project: - - - - [CodeDOM Providers for .NET Compiler](https://www.nuget.org/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform/)- [compiler element](https://msdn.microsoft.com/en-us...
- Modified
- 17 Apr at 10:13
Remote Debugging .NET Core Linux Docker Container - "the current source is different from the version built into .dll"
- - - - I am receiving the following error: ``` "The breakpoint will not currently be hit. A copy of TokenController.cs was found in TSL.Security.Service.dll, but the current source code is differe...
- Modified
- 7 Jun at 02:16
Read file from resources folder in Spring Boot
I'm using Spring Boot and `json-schema-validator`. I'm trying to read a file called `jsonschema.json` from the `resources` folder. I've tried a few different ways but I can't get it to work. This is m...
- Modified
- 6 Jun at 20:38
Bypassing SSL Certificate Validation on DotNet Core Service Stack
I know that `ServicePointManager.ServerCertificateValidationCallback` no longer exists in .Net Core and is instead replaced with: ``` using(var handler = new System.Net.Http.HttpClientHandler()) { ...
- Modified
- 6 Jun at 20:25
Unit Testing a custom Web API AuthorizeAttribute
I am trying to unit test, with NUnit in C#, a custom Authorize Attribute. In particular that a particular http status code and message have been returned in the case of not being authorized. My attrib...
- Modified
- 5 Sep at 12:30
Is there a way to list all resources in AWS
Is there a way to list all resources in AWS? For all regions, all resources.. Such as list all EC2 instances, all VPCs, all APIs in API Gateway, etc... I would like to list all resources for my accou...
- Modified
- 4 Sep at 22:55
Electron require() is not defined
I'm creating an Electron app for my own purpose. My problem is when I'm using node functions inside my HTML page it throws an error of: > 'require()' is not defined. Is there any way to use Node fun...
- Modified
- 17 Apr at 14:57
Align the form to the center in Bootstrap 4
I am trying to align the form to the center and keep it responsive. I have tried several ways but no success. I am trying to center all the text and the form. I am using Bootstrap v4. I am not sure if...
- Modified
- 6 Jun at 13:27
Convert array to tuple?
Is it possible to convert array to tuple in C#? Something like this: ``` var ar = new int[2] {5, 7}; Tuple<int,int> t = Tuple.Create(ar); ```
C# I/O Parallelism does increase performance with SSD?
I've read some answers ( for [example](https://stackoverflow.com/questions/10954340/will-threading-improve-performance)) here at SO where some say that parallelism is not going to increase performanc...
- Modified
- 6 Jun at 07:17
How do you perform wireless debugging in Xcode 9 with iOS 11, Apple TV 4K, etc?
Wireless debugging was recently added as a feature in Xcode 9, iOS 11, and tvOS 11. Apple TV 4K doesn't have a USB port, so it requires wireless debugging. How do you perform this wireless debugging i...
How to enable CORS in ASP.net Core WebAPI
I have a backend ASP.Net Core Web API hosted on an Azure Free Plan (Source Code: [https://github.com/killerrin/Portfolio-Backend](https://github.com/killerrin/Portfolio-Backend)). I also have a Cl...
- Modified
- 19 Jan at 16:28
Copy files to output directory using csproj dotnetcore
So my issue is pretty simple. I have some files that I want to be copied to the build output directory whether it is a debug build or a release publish. All of the information I can find is about the ...
Web APi OData V4 Issue "The entity '' does not have a key defined
When I run the following sample it is throwing the following exception... > Additional information: The entity 'TestEntity' does not have a key defined. I have configured the key using code first en...
- Modified
- 5 Jun at 14:41
How do I add a service stack license to a .NET core project?
For my service stack license I am used to adding a web config entry `<add key="servicestack:license" ... />` How do I achieve a similar effect in ServiceStack.Core since there is no web config?
- Modified
- 5 Jun at 14:25
Why interfaces for message contracts are strongly recommended in MassTransit?
MassTransit states that we should use interfaces for message contracts : > It is strongly suggested to use interfaces for message contracts, based on experience over several years with varying leve...
- Modified
- 5 Jun at 12:13
ASP.NET application on local IIS express to authenticate users ussing active directory
I am trying to setup my local asp.net web application to use an LDAP connection string (active directory domain controller) for user authentication. LDAP connection string points to an active directo...
- Modified
- 16 Jun at 15:37
Server side rendering. Web API and Angular 2
I've developed a web application built using `ASP.NET Core Web API` and `Angular 4`. My module bundler is `Web Pack 2`. `url``http://myappl.com/#/hellopage``http://myappl.com/#/hellopage` I've see...
- Modified
- 16 Jun at 06:43
Typed query for INNER JOIN (SELECT DISTINCT)?
Is it possible to create a typed query that produces the following SQL? ``` SELECT A.* FROM schema1.Table1 A INNER JOIN (SELECT DISTINCT column1, column2 FROM schema1.Table2) B ON A.column1 = B.colum...
- Modified
- 5 Jun at 10:24
How to open/run YML compose file?
How can I open/run a YML compose file on my computer? I've installed Docker for Windows and Docker tools but couldn't figure out how.
- Modified
- 5 Jun at 08:36
Tables with schema using SqliteDialect.Provider
In my test project I register a connection using ":memory" connection string and SqliteDialect.Provider as provider. When trying to run tests that execute arbitrary sql (I have a complex join statemen...
- Modified
- 5 Jun at 08:14
Is it ok to use "async" with a ThreadStart method?
I have a Windows Service that uses Thread and SemaphoreSlim to perform some "work" every 60 seconds. ``` class Daemon { private SemaphoreSlim _semaphore; private Thread _thread; public v...
- Modified
- 5 Jun at 07:44
Find All Capital Letter in a String - Regular Expression C#
I need to find all in a `string`. For example : `Electronics and Communication Engineering` : `ECE`