Debugging ServiceStack’s react-lite and vue-lite
How can I attach a debugger to debug the typescript part (react/vue) of the new “lite” templates? For regular SPA projects with `npm` there are two ways I know of: - either debug from VSCode - run S...
- Modified
- 3 Apr at 15:2
Is it possible to configure HttpClient not to save cookies?
I have a simple `Asp.Net Core` WebApi where I am using `HttpClient` to send some custom web requests. I am using `HttpClient` like so: ``` services.AddHttpClient<IMyInterface, MyService>() ... public...
- Modified
- 13 Feb at 22:19
The annotation for nullable reference types should only be used in code within a '#nullable' context
I have a console app to try out the C# 8 null reference types. Switched the project to build with lang ver C# 8. Then the following code results in a warning. ``` class Program { static vo...
- Modified
- 9 Dec at 17:0
How to add an item to a list in Kotlin?
I'm trying to add an element list to the list of string, but I found `Kotlin` does not have an add function like `java` so please help me out how to add the items to the list. ``` class RetrofitKotl...
- Modified
- 30 Apr at 13:8
.Net core IHostedService Background task exception will not terminate application
I have a program that needs to terminate when an IHostedService background task encounters a certain scenario. I was hoping to do this by just throwing an exception in the background task that would g...
Using multiple instances of ServerEventsClient in single process connecting to same service URI
When I use multiple ServerEventsClient instances in a single .NET application connecting to same URI, any subsequent GET/POST etc call blocks indefinitely and times out. I believe this is related to s...
- Modified
- 2 Apr at 18:31
Use ServiceStack's IAuthRepository to get detailed information
I would like to get a user's information. I think that IAuthRepository can be used to retrieve information, but when I send insert the Id of user it does not return anything. I have the following code...
- Modified
- 2 Apr at 16:22
How to Configure Network Tracing Dotnet core for HttpClient calls?
As per reference document at [https://learn.microsoft.com/en-us/dotnet/framework/network-programming/how-to-configure-network-tracing](https://learn.microsoft.com/en-us/dotnet/framework/network-progra...
- Modified
- 17 May at 10:49
Toggling Focus Assist mode in Win 10 Programmatically
There are a few unanswered questions to this pretty much everywhere I've looked so I suppose I should add mine to the tally. I am looking to toggle Focus Assist mode in Win 10 programmatically and hav...
- Modified
- 11 Jan at 22:3
How to inject the dependency of the next handler in a chain of responsibility?
In my current project, I'm using quite a few Chain of Responsibility patterns. However, I find it a bit awkward to configure the chain via dependency injection. Given this model: ``` public interfa...
- Modified
- 4 Apr at 12:23
How to config `Serilog` to write to the application directory with the cofig file?
I'm using `Serilog` on a `.net core`. I want to config the log path to the application directory. I see there's an extension [https://github.com/serilog/serilog-settings-configuration](https://github...
Difference between ServiceStack's web and dotnet-new tools
ServiceStack currently seems to offer two tools for creating projects based on templates. The `dotnet-new` ([https://docs.servicestack.net/dotnet-new](https://docs.servicestack.net/dotnet-new)) and t...
- Modified
- 2 Apr at 10:55
Require admin role for ServiceStack's RegistrationFeature
How would I add users to an `IAuthRepository` without allowing self-registration? Is there a way to require a certain role (e.g. admin) for the `RegistrationFeature`, or would it be easier to create a...
- Modified
- 2 Apr at 10:24
Subscribe is deprecated: Use an observer instead of an error callback
When I run the linter it says: ``` subscribe is deprecated: Use an observer instead of an error callback ``` Code from [this angular app](https://github.com/Ismaestro/angular-example-app): ``` this.u...
- Modified
- 22 May at 20:9
How to Update All Packages of solution to Latest Minor Version Nuget?
Stick together with minor versions of updated packages, in the entire solution. > Ideally Update-Package should do but that command will pick up latest version of all packages, no matter what. EDI...
How to increase the concurrency of ServiceStack.Core
I use ServiceStack.Core to test concurrency in Windows and Ubuntu, all with a maximum of 6 concurrency, how to set up to improve concurrency? ``` public class AppHost : AppHostBase { ... } publi...
- Modified
- 2 Apr at 03:22
Selfhost security issue?
When using selfhost .Net Core 2.x, all the build artifacts are statically served by default, since the default directory is the same place as the binary/exe. This means if one knows the names of th...
- Modified
- 3 Apr at 09:24
Create X509Certificate2 from Cert and Key, without making a PFX file
In the past I have been making secure TcpListener by exporting a PFX certificate with a password, but would like to know if this step could be skipped. I'm not using commercial SSL certificates, and...
- Modified
- 23 Mar at 03:25
About implicitly convert type 'int' to 'char', why it is different between `s[i] += s[j]` and `s[i] = s[i]+s[j] `
The sample code for demo: ``` public void ReverseString(char[] s) { for(int i = 0, j = s.Length-1; i < j; i++, j--){ //s[i] = s[i]+s[j]; //<-- error s[i] += s[j]; /...
- Modified
- 3 Apr at 05:47
Unable to load script.Make sure you are either running a Metro server or that your bundle 'index.android.bundle' is packaged correctly for release
`react-native run-android` command terminates by leaving a message in android simulator. The message is as follows: > Unable to load script.Make sure you are either running a Metro server or that your...
- Modified
- 15 Jul at 15:26
Overview of all the integrated functionality in IAuthRepository in ServiceStack
I was wondering if there is some kind of overview of all the integrated functionally for IAuthRepository (ServiceStack). I know about /register, /auth/credentials. Is there some way to get all the inf...
- Modified
- 30 Mar at 12:56
Custom reference naming convention in ormlite
Is there a way to change the default naming convention for references and foreign keys ? For example, I want to do this : ``` public class Customer { [References(typeof(CustomerAddress))] p...
- Modified
- 30 Mar at 00:33
"E: Unable to locate package python-pip" on Ubuntu 18.04
I am trying to install virtualenv on Ubuntu. First it said `command 'pip' not found`, so I typed ``` sudo apt install python-pip ``` then it said ``` E: Unable to locate package python-pip ```...
- Modified
- 4 Aug at 05:20
In Unity / C#, does .Net's async/await start, literally, another thread?
for anyone researching this difficult topic , be sure to see another question I asked which raised related key issues: [In Unity specifically, "where" does an await literally return to?](https://s...
Setting up C# editorconfig Code Cleanup on build/save and commit
Our team want to enforce styling rules in our C# project. I read somewhere some time that Microsoft said that ".editorconfig is the future" so we want to use this. NOTE: We don't want to use ReSharper...
- Modified
- 29 Mar at 09:25