How can I use servicestack product so I can connect my Flutter or Dart to soap WSDL services?
I am trying to get my Flutter app to connect securely to soap/wsdl web services. My question is how can I use servicestack product so I can connect my Flutter Mobile App or Dart console App to consu...
- Modified
- 5 Mar at 06:29
Why wasn't TEventArgs made contravariant in the standard event pattern in the .NET ecosystem?
When learning more about the standard event model in .NET, I found that before introducing generics in C#, the method that will handle an event is represented by this delegate type: ``` // // Summary...
- Modified
- 27 Feb at 21:26
how to set the environment of dotnet core in docker?
I want to be able to run dotnet core by docker in different environments(for now just development and production) but my docker always start in production environment. here is my docker file: ``` FRO...
Enumerate or map through a list with index and value in Dart
In dart there any equivalent to the common: ``` enumerate(List) -> Iterator((index, value) => f) or List.enumerate() -> Iterator((index, value) => f) or List.map() -> Iterator((index, value) => f) ...
Reset to Initial State with React Hooks
I'm currently working on a signup form and the following is a snippet of my code: ``` const Signup = () => { const [username, setUsername] = useState('') const [email, setEmail] = useState(''...
- Modified
- 26 Feb at 23:39
Complex (deeply nested) request validation in ServiceStack, using Fluent Validation
I'm coming up short, trying to use Fluent Validation in the ServiceStack DTOs, when the model have properties nested several levels. Ex.: The model is structured like this A => B => C => D ...
- Modified
- 26 Feb at 20:59
Flutter how to handle image with fixed size inside box?
I am new to Flutter and I like it but I am not comfortable building layouts. I am working on an app that contains a ListView of Cards. Each card is inside a Container and contains an image (with fixe...
- Modified
- 16 Sep at 14:52
How can I solve the error 'TS2532: Object is possibly 'undefined'?
I'm trying to rebuild a web app example that uses Firebase Cloud Functions and Firestore. When deploying a function I get the following error: ``` src/index.ts:45:18 - error TS2532: Object is possib...
- Modified
- 26 Feb at 11:27
Error: table has not been registered, in DynamoDB
Getting error as the table has not been registered while using pocodynamo for my local dynamodb. I'm trying to have crud operation but while inserting data to the local dynamodb table, I'm getting an ...
- Modified
- 26 Feb at 11:36
Removing whitespace between consecutive numbers
I have a string, from which I want to remove the whitespaces : ``` string test = "Some Words 1 2 3 4"; string result = Regex.Replace(test, @"(\d)\s(\d)", @"$1$2"); ``` the expected/desired result w...
Getting empty response on ASP.NET Core middleware on exception
I am trying to create a middleware that can log the response body as well as manage exception globally and I was succeeded about that. My problem is that the custom message that I put on exception it'...
- Modified
- 4 Jun at 02:54
Dependency Injection in .NET Core 3.0 for WPF
I’m quite familiar with ASP.NET Core and the support for dependency injection out of the box. Controllers can require dependencies by adding a parameter in their constructor. How can dependencies be...
- Modified
- 20 Jan at 22:37
Equality and polymorphism
With two immutable classes Base and Derived (which derives from Base) I want to define Equality so that - equality is always polymorphic - that is `((Base)derived1).Equals((Base)derived2)` will call ...
How can I use the new DI to inject an ILogger into an Azure Function using IWebJobsStartup?
I am using `Azure Function` v2. Here is my function that uses the constructor injection: ``` public sealed class FindAccountFunction { private readonly IAccountWorkflow m_accountWorkflow; pr...
- Modified
- 6 Mar at 13:23
How to get nested element using ServiceStack?
Although I am able to access the SchemaVersion using code below, I cannot access FormatDocID nested element. Any ideas how can I easily get FormatDocID using ServiceStack and AutoQueryFeature (or sim...
- Modified
- 25 Feb at 20:58
Why is typeA == typeB slower than typeA == typeof(TypeB)?
I've been optimising/benchmarking some code recently and came across this method: ``` public void SomeMethod(Type messageType) { if (messageType == typeof(BroadcastMessage)) { // ... ...
React.useState does not reload state from props
I'm expecting state to reload on props change, but this does not work and `user` variable is not updated on next `useState` call, what is wrong? ``` function Avatar(props) { const [user, setUser] =...
- Modified
- 14 Nov at 02:31
Global exception handling in Xamarin.Forms
Is there a way to handle exceptions at a global level in a Xamarin.Forms app? Currently my app has a login page which has a button "Throw Exception" button bound to the "Exception_Clicked" method. `...
- Modified
- 25 Feb at 12:11
ServiceStack ORMLite JoinAlias on a Where clause
I'm trying to add a Where clause to a table joined with a JoinAlias, but there doesn't appear to be a way to specify the JoinAlias on the where clause. I'm trying to join to the same table multiple t...
- Modified
- 25 Feb at 03:45
OrderBy in Include child using EF Core
In my .NET Core / EF Core application I have a model with a nested list of child objects. When I retrieve an instance, I need the nested list to be ordered by one of the child's properties. What is t...
- Modified
- 1 Mar at 02:16
Azure Function, returning status code + JSON, without defining return in every part of logic
I have an Azure Function 2.x that reside on a static class that looks like this ``` [FunctionName("Register")] public static async Task<IActionResult> Run([HttpTrigger(AuthorizationLevel.Anonymous, "...
- Modified
- 25 Feb at 10:23
Force Servicestack to delimit fields when producing CSV
I'm using Servicestack to produce CSV. The data contains mobile (cell) phone numbers. These start with a leading zero e.g. 04053333888. My problem is the consumers open this file in Excel, which trunc...
- Modified
- 24 Feb at 22:53
Cannot edit in read-only editor VS Code
I am using Visual Studio Code V 1.31.1. I used an input function but I can't write an input in output panel it shows this error > Cannot edit in read-only editor. Please help me solve this problem. ...
- Modified
- 24 Feb at 20:54
ServiceStack: Upgrade to 5.4.1 gives me ReflectionTypeLoadException on ServiceStack.Common
I was running ServiceStack 5.2.0, until I upgraded due [to this answer](https://stackoverflow.com/questions/54840831/servicestack-accessing-the-irequest-in-the-service-returns-null). After doing that,...
- Modified
- 13 Sep at 22:38
Disable code formatting for specific block of code in Visual Studio
How can I for a specific block of code in (C# 7)? I have this method: ``` public CarViewModel(ICarsRepo carsRepo) { ... Manufacturers = ToSelectList<Manufacturer>(); Categories = ToSele...
- Modified
- 1 Dec at 00:39