Swashbuckle - swagger documentation of returned response?

Swashbuckle would not generate swagger.json with an output of "UserCreateResponse", how do you fix this? ``` [HttpPost] public async Task<IActionResult> Update([FromBody]UserCreate Request) {...

How to open file:///private/var/mobile/Containers/Shared/AppGroup/ folder on Mac?

I'm trying to use `fileProvider` in iOS 11 and have a database at `file:///private/var/mobile/Containers/Shared/AppGroup/xxxx/xxx.db`. I would like to open this folder to open this database in SQLite ...

23 Sep at 17:38

ImportError: No module named IPython

When i try to use , then i show the error: ![Error Image](https://i.stack.imgur.com/1latQ.png) (ImportError: No module named IPython) I am using Python 2.7.13, and im trying to make the game of life...

19 Jul at 02:20

subscribe to valueChanges from input FormControl in FormGroup

In Angular 4, I'm trying to subscribe to the valueChanges of a FormControl. Neither of the versions below is working. I'm not seeing any errors. The form.value JSON is updating as I type, but the subs...

19 Jul at 01:6

C# Performance on Small Functions

One of my co-workers has been reading Clean Code by Robert C Martin and got to the section about using many small functions as opposed to fewer large functions. This led to a debate about the performa...

8 Nov at 15:12

System.IO.InvalidDataException : ServiceStackHost.Instance has already been set (BasicAppHost)

I'm getting an error when i try to run some tests on my servicestack web service. I'm using ServiceStack 4.5.8 and Nunit 3.5. The solution was created initially from a ServiceStackVS template. The e...

18 Jul at 13:48

Azure functions - should functions be written inside static classes

I'm starting to try out Azure functions. I'm using Visual Studio 2017 Preview version 15.3. When I right click on the Azure Functions project I created, and select Add>New Item...>Azure Function, the ...

3 Sep at 13:51

C# - Calculating time difference in minutes

I have got the following code: ``` DateTime start = DateTime.Now; Thread.Sleep(60000); DateTime end = DateTime.Now; ``` and I would like to calculate the difference in minutes between start and end...

25 Aug at 10:27

How is Roslyn related to MsBuild?

I'm wondering: How exactly is Roslyn related to MsBuild? My understanding was that 1. Roslyn is a compilation engine 2. MsBuild is is mostly a set of specifications of how a project is set up - i.e...

18 Jul at 13:17

Localization in external class libraries in ASP.NET Core

I have two projects: - - How can I add localization with `IStringLocalizer` to ? Where must be `.resx` files located?

How to import Angular Material in project?

I have installed Angular Material Design. Now I try to add this in `app.module.ts` file: ``` import { MaterialModule } from '@angular/material'; ``` What I should decify in section: `imports: []`? ...

23 Jul at 21:45

How to install Android app on LG smart TV?

I have android app apk on my USB, I inserted it in my LG smart tv, it shows me USB device, but apk is not visible... Any ideas what's the issue with it?

18 Jul at 11:50

asp C# Application Default Credentials are not available

I am running Google Translate API in C#. Running locally on my computer the next code works, but online on a server it throws the following error: ``` using Google.Cloud.Translation.V2; TranslationC...

IReadOnlyCollection vs ReadOnlyCollection

There are a couple of questions already on SO, but none of the ones I found really touches on this particular topic, so here it goes... My understanding is that one should always attempt to return a...

18 Jul at 10:57

Hangfire - Prevent multiples of the same job being enqueued

## Scenario: is scheduled to run every 5 minutes, and takes ~1 minute to complete. A lot of work piles up and takes 15 minutes to run. There are now three being processed concurrently - I don...

18 Jul at 10:37

How to null coalesce for Boolean condition?

I'm trying to safely check if an `IList<>` is not empty. ``` var Foo = Bar.GimmeIListT(); // Returns an IList<SomeObject> if (Foo?.Any()) // Do cool stuff with items in Foo ``` But there is an ...

18 Jul at 10:5

EntityFramework Core Unit Testing - SQLite in-memory mode vs. The InMemory provider

I am in a process of writing unit tests for a project that uses EntityFramework Core and according to the [docs](https://learn.microsoft.com/en-us/ef/core/miscellaneous/testing/) I can use `SQLite in-...

Error occurred when trying to create a controller of type 'EmployeeController'. Make sure controller has a parameterless public constructor

Why I'm I getting this error on Employee Controller rest of them are working perfectly Here is my Employee Controller ``` public class EmployeeController : ApiController { #region Call ...

How to use the projection/camera technique in c#

I drew the following grid: [](https://i.stack.imgur.com/6UUqT.png) The above grid is drawn using the following two methods, one to calculate the grid and the other to calculate the centers for each ...

Swagger UI - " TypeError: Failed to fetch" on valid response

I've just pulled down the latest Swagger from the Git repo (3.0.19) using: [https://github.com/swagger-api/swagger-ui.git](https://github.com/swagger-api/swagger-ui.git) and updated my API to use the ...

18 Jul at 05:46

ServiceStack OrmLite: Use default database constraint instead of null value from data model

I'm still pretty new to these technologies. I've run into a small issue, and it's one that can be fixed by writing some lazy code...but OrmLite and ServiceStack streamline so many things, I'm wonderin...

The Mix manifest does not exist when it does exist

For my admin panel I extract all the assets including the `manifest-json.js` to `mix.setPublicPath(path.normalize('public/backend/'))`. All the files get correctly added to the backend folder, and th...

17 Jul at 21:11

How to seed in Entity Framework Core 2?

I have two tables, and I want to fill them using seeds. I use ASP.NET Core 2 in Ubuntu. How to populate the data for the two tables where one is connected to the other via a foreign key? The Flowmeter...

14 Feb at 21:20

/bin/sh: apt-get: not found

I am trying to change a dockerFile to work with aspell. I have a bash script that I want to wrap in a dock > Step 4: Wrap the script in a Docker container.The sample SDK we downloaded earlier contains...

22 Sep at 21:15

Create a table if it does not exist?

Using Entity Framework Core, is there a way to create the table if it does not yet exist? Exception will throw even if `EnsureCreated` is called in the context: ``` DbSet<Ticker> Ticker { get; set } ...