Questions

ICustomAuthorizeRequestValidator isn't being called?

I'm trying to use `AddCustomAuthorizeRequestValidator` method to provide custom claims validation. I can't even get a breakpoint to be hit in the `ICustomAuthorizeRequestValidator` implementation. Hav...

10 Nov at 12:28

Recommended approach for handling non-authenticated sessions on ServiceStack

I've an MVC app, with SS integrated for all BLL that has a shopping basket feature. I want anonymous users to be able to add to basket and then continue shopping with basket details intact when they r...

30 Aug at 07:41

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available

I am using Python 3.6. When I try to install "modules" using `pip3`, I face this issue: ``` pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available ```...

21 Dec at 15:48

What's the most concise way to create a Task that never returns?

For testing purposes, I need to mock a `Task`-returning method on an interface handing back a task that never runs the continuation. Here's the code I have so far: ``` // FooTests.cs [Test] public v...

30 Aug at 07:3

OneSignal: How to Handle notificationOpened in AppDelegate of a Xamarin.Forms app?

I am working on implementing OneSignal push-notification in Xamarin.Forms. I need to pass the string returned by OneSignal `AdditionalData` into the constructor of `App()`. So I used `HandleNotificati...

Pyinstaller is not recognized as internal or external command

I am trying to use `pyinstaller` in cmd but I receive error: ``` C:\Users\username>pyinstaller 'pyinstaller' is not recognized as an internal or external command, operable program or batch file. C...

30 Aug at 04:33

Multiple assertions using Fluent Assertions library

It seems that Fluent Assertions doesn't work within NUnit's `Assert.Multiple` block: ``` Assert.Multiple(() => { 1.Should().Be(2); 3.Should().Be(4); }); ``` When this code is ...

How to create Toast in Flutter

Can I create something similar to [Toasts](https://developer.android.com/guide/topics/ui/notifiers/toasts.html) in Flutter? [](https://i.stack.imgur.com/a2ahK.jpg) Just a tiny notification window that...

26 Dec at 09:44

AddDbContext was called with configuration, but the context type 'MyContext' only declares a parameterless constructor?

In the following console application (.Net core 2.0), the `scaffold-dbcontext` created the following `DbContext` ``` public partial class MyContext : DbContext { public virtual DbSet<Tables> Tabl...

Generating WSDL for a single ServiceStack service

Is there a way to get a WSDL for a single ServiceStack service? For example, if I override the AppHost.Configure method and register a service, like so... ``` public override void Configure(Containe...

29 Aug at 17:8

native/canonical approach to Fire-and-forget in ASP.NET Core world

Doing some coding with websockets related, I found that's it's unclear at the moment, how to properly deal with long running background processes or tasks executed via fire-and-forget semantics (this ...

Default and specific request timeout

Usually it's desirable to have default timeout (e.g. 30s) that will be applied to all requests and can be overridden for particular requests (e.g. 600s). There's no good way to specify default timeo...

5 Mar at 17:12

The version of Microsoft.NET.Sdk used by this project is insufficient to support references to libraries targeting .NET Standard 1.5 or higher

Im am encountering the following build error: > The version of Microsoft.NET.Sdk used by this project is insufficient to support references to libraries targeting .NET Standard 1.5 or higher. Please...

How retrieve http delete method params in ServiceStack

In an Angular 2 client app, I have added a parameter to the http.delete method's RequestOptions: (new RequestOptions({headers: this.headers, body: body})). Does anybody know if it's being stripped off...

29 Aug at 12:1

Display label text in uppercase using xaml in Xamarin.Forms

I have an username label and need to view this as uppercase but this should only relate to the UI. The data (string) should be saved in the db as actual case whatever it is. Could anyone tell me if th...

ServiceStack.OrmLite inheritance mapping

Does ServiceStack.OrmLite support inheritance mapping? Like DevExpress XPO: [Inheritance Mapping](https://documentation.devexpress.com/CoreLibraries/2125/DevExpress-ORM-Tool/Concepts/Inheritance-Mapp...

29 Aug at 23:15

How to add a <br> tag in reactjs between two strings?

I am using react. I want to add a line break `<br>` between strings 'No results' and 'Please try another search term.'. I have tried `'No results.<br>Please try another search term.'` but it does ...

29 Aug at 09:42

System.Data.Linq in netstandard20

I have a netstandard20 project that references a .Net 4.6 Project, all compiles and runs except where I call any functionality in the .Net 4.6 project, I get the following error. > FileNotFoundExcept...

29 Aug at 09:30

How to specify a compiler in CMake?

I would like to use the IAR compiler. I noticed CMake has already have a bunch of files about this compiler: [https://github.com/jevinskie/cmake/blob/master/Modules/Compiler/IAR.cmake](https://github...

29 Aug at 08:29

FileFormatException when serializing a FixedDocument

When serializing a FixedDocument to XPS I sometimes get a `FileFormatException` telling me that the format of a font (I assume) does not conform to the expected file format specification (see exceptio...

29 Aug at 08:2

Problems calling ServiceStack services in-process with Validation & Filters

I need to be able to call my SS services from the controllers of an MVC application. Ideally i'd like to call them in-process to avoid the overhead of buiding a http request etc. From scouring docume...

29 Aug at 07:37

Make names of named tuples appear in serialized JSON responses

: I have multiple Web service API calls that deliver object structures. Currently, I declare explicit types to bind those object structures together. For the sake of simplicity, here's an example: ``...

Logging and configuration for .Net core 2.0 console application?

The following code got the errors. What's the right way to setup logging and configuration management for .Net Core 2.0 console application? > Error CS1061 'LoggerFactory' does not contain a definit...

28 Aug at 22:8

How to calculate 1st and 3rd quartiles?

I have DataFrame: ``` time_diff avg_trips 0 0.450000 1.0 1 0.483333 1.0 2 0.500000 1.0 3 0.516667 1.0 4 0.533333 2.0 ``` I want to get 1st quartile, 3rd quartile and medi...

28 Aug at 19:38

How do you detect the host platform from Dart code?

For UI that should differ slightly on and , i.e. on , there must be a way to detect which one the app is running on, but I couldn't find it in the docs. What is it?

26 Dec at 09:27