ServiceStack's RedisTypedClient - Can you use strings to define the type?
I'm trying to figure out if there is any way to create a `RedisClient` that has the functionality of a `RedisTypedClient` but able to define the URN key with a simple string instead of passing in a ty...
- Modified
- 11 Jul at 15:11
"Permission Denied" trying to run Python on Windows 10
Seems as though an update on Windows 10 overnight broke Python. Just trying to run `python --version` returned a "Permission Denied" error. None of the three updates; KB4507453, KB4506991, or KB45090...
- Modified
- 26 Apr at 01:39
How to draw a horizontal line in flutter row widgets?
In my flutter project, I have initialized a Row. Inside that, I created some Texts in a column and after that, I want to add a line but it is not showing anything. I have used Expanded for that reason...
Is There a Way to Inject A Dependency to a Helper Class Using IoC Container?
I have a helper class that I'm instantiating in one of my services. I was wondering if there is a way to inject the Repository using the IoC container and have it as a property instead of passing the ...
- Modified
- 9 Jul at 22:24
Getting HttpRequestExceptions: The response ended prematurely
For some reason, I'm getting a HttpRequestException with the message "The response ended prematurely. I'm creating about 500 tasks that use my RateLimitedHttpClient to make a request to a website so i...
- Modified
- 9 Jul at 21:19
perform event-sourcing projections over table storage
I'm creating a tiny event-sourcing-style function app, where every invocation of a function will write an event to table storage. An example of such an event would be: ``` +------------+-------------...
- Modified
- 9 Jul at 21:9
Xamarin crash: System.MissingMethodException: Method not found: void .ResourceLoadingQuery.set_Instance(object)
When I try to run my Xamarin app, I get this error in `InitializeComponent` of App.xaml.cs: > System.MissingMethodException: Method not found: void .ResourceLoadingQuery.set_Instance(object) I tried...
- Modified
- 9 Jul at 16:55
C# and SIMD: High and low speedups. What is happening?
I am trying to speed up the intersection code of a (2d) ray tracer that I am writing. I am using C# and the System.Numerics library to bring the speed of SIMD instructions. The problem is that I am g...
- Modified
- 9 Sep at 23:21
How to trace all HTTP requests in .net core 2.1 globally?
I want to log all HTTP requests in a dotnet core 2.1 application. Logging should include HTTP headers, body and the host address. I need to bind my logging code globally without changing the existing ...
- Modified
- 9 Jul at 08:22
How to setup event log for .NET Core 3.0 Worker Service
I'm working with the new Worker Service app template with .NET Core 3.0 Preview and am trying to add event logging using the `AddEventLog` method. However, I cannot see any of my logs via the Event Vi...
Converting .HEIC to JPEG using imagick in C#
I'm having trouble in converting heic file to jpeg I have already tried searching it online, i can find how to write to a folder but not how to get a byte[] of a converted file so that i can save it ...
- Modified
- 8 Jul at 16:46
How do I set up VSCode to put curly braces on a new line in C# and C++ while typing?
I want VS Code to put curly braces on a new line in C# and C++ How it works now ![How it works now](https://media.giphy.com/media/h40eFwZ7GnB4WVrbLg/giphy.gif) How it should look ![How it should loo...
- Modified
- 8 Jul at 11:53
How to use @section scripts in a partial view MVC.Core
In ASP.NET Core MVC it is possible to define a script section for a page like this: @section scripts { alert('hello'); } And if the the layout contains : @RenderSection("Scripts", ...
- Modified
- 5 May at 18:37
Cannot invoke an object which is possibly 'undefined'.ts(2722)
I have a button component. I simply pass it just one `onClick` prop out of many optional props I've defined: ``` const Button = (props: ButtonProps) => { const handleClick: React.MouseEventHandler...
- Modified
- 30 Apr at 14:2
Net Core: Convert String to TagBuilder
The following code converts a `TagBuilder` to a `String`. What is the opposite? How do I convert reverse, a `String` to a `TagBuilder`? Looking for a solution. [Convert IHtmlContent/TagBuilder to str...
- Modified
- 10 Aug at 12:18
Split async method into two for code analysis?
I have code: ``` public async Task DeleteColorSchemeAsync(ColorScheme colorScheme) { if (colorScheme == null) throw new ArgumentNullException(nameof(colorScheme)); if (colorScheme.Is...
- Modified
- 5 Jul at 22:35
Moq - Non-overridable members may not be used in setup / verification expressions
I'm new to Moq. I'm mocking a `PagingOptions` class. Here is how the class looks like: ``` public class PagingOptions { [Range(1, 99999, ErrorMessage = "Offset must be greater than 0.")] ...
- Modified
- 26 Jun at 15:42
Unable to start embedded Tomcat org.springframework.context.ApplicationContextException
Started working with spring boot recently. Trying to create a simple login so I can start to migrate my spring mvc project to spring boot. However keep getting the error : > unable to start web serve...
- Modified
- 5 Jul at 09:15
How can I randomly add CSS attributes to Blazor component from parent layer as Vue did?
Since I want to design some reusable Blazor components, I hope they could have a feature like this: Suppose I have a custom component "MyComponent", I could add any CSS attribute to it when I am using...
- Modified
- 9 Dec at 18:32
I get the message ''could not find the task 'build'" when I try to start my C# code
I am new to C# and am learning using pluralsight I have followed exactly what the tutorials are doing but have ran into a problem that the tutorial does not. I have the simple ''Hello World'' progra...
Can C# GC move memory objects
Let's suppose this very basic C# code: ``` var tab = new int[10]; ``` I have read that non fixed variables can be moved in memory by garbage collector. My question is: Is it possible that "tab" ad...
- Modified
- 4 Jul at 18:37
Getting AutoQuery pagination to work with left join
In my AutoQuery request I have a left join specified so I can query on properties in the joined table. ``` public class ProductSearchRequest : QueryDb<Book> , ILeftJoin<Book, BookAuthor>, ILeftJo...
- Modified
- 4 Jul at 02:20
Compile time error when attempting to upgrade ServiceStack from 4.6.3 to 5.5.0 while Targeting .NET 4.7.2
I have a full framework .NET 4.7.2 (also tried 4.6.1) class library that references `ServiceStack 4.5.8.0`. When attempting to upgrade to `ServiceStack 5.5.0`, I get the following compile-time error:...
- Modified
- 4 Jul at 01:17
ASP.NET Core Identity with Windows Authentication
I'm using .NET Core 3.0 Preview6. We have an Intranet application with enabled Windows authentication which means that only valid AD users are allowed to use the application. However, we like to run o...
- Modified
- 3 Jul at 19:58
SerilogFactory don't log my messages but it logs exceptions
I want to use the SerilogFactory, the LogFactory is initialized before initializing the AppHost. This is my startup.cs : ``` public class Startup { public Startup(IConfiguration configuration) ...
- Modified
- 3 Jul at 19:56