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

AspNetCore 2.0 Claims always empty

I am working on converting a DotNet 4.5 MVC/WebAPI application to AspNetCore 2.0, and I'm having some trouble getting my Cookie authentication working again. When I set the cookie and try to access a ...

Read Controller and Action name in middleware .Net Core

I am writing a middleware class within my project in order to log the request data into our database. I do not see any easy way to get the controller name and action ? Any chance to do this easily i...

15 Jun at 04:13

Long pooling request using ServiceStack Service

I want to have a simple long pool request over `HTTP`, now question is that how can I realize the request connection still is alive ``` public async Task<ApiResponse<DeviceLongPoolRequest.Result>> Ge...

28 Aug at 13:8

Windows Form program can not find mdb file (C:\windows\system32\qbcdb.mdb)

Recently I have run into the issue of the C# program I am creating throwing an exception `Could not find file C:\windows\system32\qbcdb.mdb`. It's odd because I have never ran into this issue before w...

28 Aug at 12:47

Word Statusbar gets reset when I use range.Information

I have the following code (simplified to show the problem): ``` var wdApp = new Application(); var wdDoc = wdApp.Documents.Open("C:\foo.docx"); wdApp.StatusBar = "Updating..."; var rng = wdDoc.Range...

5 Sep at 14:53

Union vs Unionwith in HashSet

What the difference between `HashSet.Union` vs `HashSet.Unionwith` when i combine 2 hashsets. I am trying to combine like this: ``` HashSet<EngineType> enginesSupportAll = _filePolicyEvaluation.E...

28 Aug at 11:23

How to deactivate or override the Android "BACK" button, in Flutter?

Is there a way to deactivate the Android back button when on a specific page? ``` class WakeUpApp extends StatelessWidget { @override Widget build(BuildContext context) { return new Material...

3 Jan at 00:23

Why is this code giving me invalid content type from Request.Form? (ASP.NET Core)

This is using ASP.NET Core 2.0 OnGet method of RazorPages. cs file: ``` using System; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace CoreRazor2.Pages { publi...

28 Aug at 02:51

Meaning of the syntax: return _(); IEnumerable<TSource> _()

In the C# code below, I found the usage of `_()` strange. Can anyone explain what this means? ``` public static IEnumerable<TSource> DistinctBy<TSource, TKey>(this IEnumerable<TSource> source, ...

28 Aug at 13:49

Different behavior in pattern matching when using var or explicit type

Consider the following, at first glance absurd, pattern match: ``` string s = null; if (s is string ss) //false if (s is string) //false ``` Both `is` will return `false`. However if we use `var` t...

27 Aug at 10:33

System.Web.Mvc.HttpPostAttribute vs System.Web.Http.HttpPostAttribute?

In my Web API project which is based on the ASP.NET MVC, I want to use the `HttpPost` attribute. When I've added that onto the action, The IntelliSense suggests me these two namespaces: - - Which o...