Mostly I've always used middleware to apply broad swaths of business logic to my ASP.NET Core operations, but found a nice use case for ActionFilterAttributes if you need to selectively implement business logic to specific controller items (https://learn.microsoft.com/en-us/aspnet/mvc/overview/older-versions/hands-on-labs/aspnet-mvc-4-custom-action-filters). However, they don't document how to do dependency injection on your filters well, here is the best practice I've found so far: https://edi.wang/post/2019/1/21/aspnet-core-dependency-injection-in-actionfilterattribute

#Dotnet #ASPCore #WebAPI

ASP.NET MVC 4 Custom Action Filters

ASP.NET MVC provides Action Filters for executing filtering logic either before or after an action method is called. Action Filters are custom attributes tha...

Sneak peak my new Bot (scraper, search, maliciouus, novel) detection system. https://www.mostlylucid.net/blog/botdetection-introduction
Simple middleware for multi level best of class bot detection.
Or use the Yarp gateway docker container for a lightweight simple to use behavioural routing system (HAPPILY works on a pi in a docker cluster)
https://hub.docker.com/repository/docker/scottgal/mostlylucid.yarpgateway/general

FULLY adjustable town to weights and confidence, 9 separate detectors from Sinple UA through a learnign Heuristic systema nd LLM learning modes.

#ai #llm #aspcore #botdetector

mostlylucid.botdetection: Fighting Back Against Scrapers (Part 1) (English)

Scrapers are about to start using AI to mimic real users - so I built a bot detector that learns, adapts, and fights back. Key concept: Behavioural...

mostlylucid

Adding a few hashtags because they might help bring up some #Windows and #VisualStudio devs:

#React #ReactJS #Angular #TypeScript #Vue #ASPNetCore #ASPCore #NPM

Appreciate any help with #esproj and general VS 2022 configuration folks can lend!

Seems i have an issue running a development Windows Server behind an Apache proxy on Linux. The Linux Mono install is trying to run the .Net off Windows server and failing. That’s not what i was hoping for. Might need to rethink the forward facing server on my network. #dotnet #aspcore #WindowsServer #apache #Linux
今日のあさぷろぐらみんぐはここまで
とりあえず CompletableQueueStream は完成して、ASP.NET Core で動かないところまで。デバッグ中。
原因は調査中。
https://github.com/juner/PipingServer.NET/commit/4ae9163909885b55afc9c6b5d034e8b19b7f0365
#aspcore #dotnetcore #pipingserver #visualstudio2019preview3
ASP.NET Core にて、動作させようとすると エラーになった為、 nuget の取得バージョンを下げる あと、 WebUtilit… · juner/PipingServer.NET@4ae9163

…ies は不要