Connection pooling in AWS across lambdas
We know lambdas are charged by the execution time. So now I want to connect to SQL Server DB from lambda. If I create a connection in each lambda, it would be heavy for lambda. Is there any best way ...
- Modified
- 24 Feb at 16:26
Can I clone an IQueryable to run on a DbSet for another DbContext?
Suppose I have built up, through some conditional logic over many steps, an `IQueryable<T>` instance we'll call `query`. I want to get a count of total records and a page of data, so I want to call `...
- Modified
- 28 Jun at 17:18
What should `ReadAsAsync<string>` and `ReadAsStringAsync` be used for?
What should `HttpContentExtensions.ReadAsAsync<string>` and `HttpContent.ReadAsStringAsync` be used for? They would seem to do similiar things but work in curious ways. A couple of tests and their ou...
ASP.NET Core Access User.Identity in Controller Constructor
I have a scenario where I need to access `User.Identity` Claims in my Constructor's Controller. I need this because the Claims have information required for me to spin up a custom DB Context (Connect...
- Modified
- 28 Jun at 00:29
Using ServiceStack's Funq to LazyResolve dependencies
We are using ServiceStack in a web hosted API service, and have done so for awhile now. The execution path for any request follows the pattern: Request comes in: --> Service (handles request, utili...
- Modified
- 27 Jun at 18:21
How to prevent redundant log from servicestack log4net?
I am using ASP.NET MVC and servicestack.logging I used log4net. I want to log current user wit below code: ``` private static readonly ILog Logger = LogManager.GetLogger(System.Reflection.MethodBase....
- Modified
- 27 Jun at 15:50
Outlook refuses password from CryptProtectData()
I'm developing a tool to import Outlook profiles using a PRF file but it does not import the password, so I have to manually add it to the registry. I've spent lots of hours reading, testing and debu...
Version conflict in AspNetCore
I have an Asp.Net Core 2 Mvc project. I'm currently trying to separate the data access into a separate project; however, as soon as I add the reference to the data access library, I get a version con...
- Modified
- 27 Jun at 14:52
ServiceStack.OrmLite 5.1.1: "host... does not support SSL connections"
I upgraded to version 5.1.1 of ServiceStack OrmLite (via MyGet), and when I try to open a connection to the db, I suddenly get this error: > MySql.Data.MySqlClient.MySqlException: 'The host 127.0.0.1...
- Modified
- 27 Jun at 14:6
ServiceStack.Client Server Sent Events are not processed
I have a basic Hello World console program connecting to a web server but none of my callbacks are invoked (nothing gets printed to the console). ``` using ServiceStack; using System; using System.Co...
- Modified
- 27 Jun at 13:45
ASP.net MVC core RedirectToPage error - specify root relative path error
I want to redirect to a razor page from a normal controller action like this: ``` return RedirectToPage("Edit", new { id = blogId }); ``` I have already a razor page named "Edit" which is working w...
- Modified
- 27 Jun at 10:48
SignalR Core with Redis Pub\Sub and console application
I am having Asp.Net Core 2.1 with SignalR Core 1.0.1. I have created chat application that is described here: [https://learn.microsoft.com/en-us/aspnet/core/tutorials/signalr?view=aspnetcore-2.1&tabs...
- Modified
- 27 Jun at 08:44
ASP.Net Core 2.0 mixed authentication of JWT and Windows Authentication doesn't accept credentials
I've API created in asp.net core 2.0 where I am using mixed mode authentication. For some controllers JWT and for some using windows authentication. I've no problem with the controllers which authori...
- Modified
- 20 Feb at 20:31
ServiceStack: Update<T>(...) produces 'duplicate entry'
I have tried reading the docs, but I don't get why the Update method produces a "Duplicate entry" MySQL error. The docs says > In its most simple form, updating any model without any filters will up...
- Modified
- 3 Nov at 03:18
Http Utils, Dotnet Core/Linux
I have a quick question -- it seems that the responseFilter function doesn't get called under Linux/.net core. for example: `"some-valid-url".GetJsonFromUrl( requestFilter: req => Console.WriteLine(...
- Modified
- 26 Jun at 20:18
How to get current user from ServiceStack.Logging
I am using ASP.NET MVC and [servicestack.logging](https://github.com/ServiceStack/ServiceStack/wiki/Logging) I used log4net. I need to get current user who has been authenticated by servicestack-jwt....
- Modified
- 27 Jun at 13:10
How to use FreeText in EF core 2.1
I see that Entity Framework core 2.1 has a new feature to use `FREETEXT`, but I am not sure how to use it as there are no examples that I can find online. [https://github.com/aspnet/EntityFrameworkCo...
- Modified
- 27 Jun at 00:38
Graceful shutdown with Generic Host in .NET Core 2.1
.NET Core 2.1 introduced new Generic Host, which allows to host non-HTTP workloads with all benefits of Web Host. Currently, there is no much information and recipes with it, but I used following arti...
- Modified
- 26 Jun at 14:0
How to install svcutil.exe under Windows 10
I am desperately searching for a way to install `svcutil.exe` because I read [here](https://stackoverflow.com/questions/7973819/converting-wsdl-to-c-sharp-classes) and elsewhere that this was the way ...
- Modified
- 26 Jun at 12:36
TypeLoadException: Could not load type IHttpResponseStreamWriterFactory from assembly
I'm building aspnet core app. I wanted to keep one of my MVC Controllers in Class Library (so outside main project). In order to do that, I've created new class extending Controller in Class Library p...
- Modified
- 6 Aug at 15:46
How to download image and save it in local storage using Xamarin-Forms.?
I want to download an image and store it in specific folder in local storage. I am using this to download image: ``` var imageData = await AzureStorage.GetFileAsync(ContainerType.Image, uploadedFile...
- Modified
- 26 Jun at 09:24
ServiceStack.OrmLite: Slow write/reads?
This question made a more clean benchmarking, and Mythz found an issue and resolved it: [ServiceStack benchmark continued: why does persisting a simple (complex) to JSON slow down SELECTs?](https://s...
- Modified
- 30 Jun at 11:37
Routing to an ApiController in a razor page app?
I created a ASP.NET Core Razor page app (asp.net version 2.1.1). It works just fine with the normal Pages but I also want an ApiController as in this tutorial: [https://learn.microsoft.com/en-us/aspne...
- Modified
- 25 Jun at 20:46
A Way to Automate the "Compile" Function of MS Office's VBA Code
Typically when I make a change to a VBA file I like to compile it to ensure my changes didn't break anything: [](https://i.stack.imgur.com/e3FKY.png) But compiling on different machines with differe...
- Modified
- 30 Mar at 22:3
With C#, is querying YAML possible without defining lots of types?
I need to work with YAML generated by Kubernetes and I'd like to be able to read specific properties with an XPath-like or `jq`-like DSL notation in C#. The structure and nature of the YAML that Kube...