DotNet Core: AWS Lambda Resolvers - .net-core

AWS AppSync enables us to use AWS Lambda to resolve any GraphQL field. I followed the link https://docs.aws.amazon.com/appsync/latest/devguide/tutorial-lambda-resolvers.html
But, I want an example code for the DotNet Core using C#.

AppSync currently does not have that particular tutorial in .NET, we will take this feedback into consideration for future tutorials. In the interim, I suggest you search through the .NET SDK repo and/or file an issue with particular questions you have that are specific to .NET where the above tutorial in another language does not suffice.
https://github.com/aws/aws-sdk-net/issues

Related

Migrating from NET4.8 to NET5/Core, is Full Framework required?

Using the NET Upgrade Assistant, it informed me that it couldn't perform the migration since the code was not in .NET Full Framework. For code to operate in the new NET world, is that a requirement or is that a assistant issue? Can I just create a new project and manually move everything to it?
The error is
[09:22:29 ERR] Support for Web Forms is limited to .NET Full Framework. To learn more please read: aka.ms/migrate-web-forms [09:22:29 ERR] Project C:\Projects\IC\VS2022\SentryServices_NET5_Dev\WWW\www.csproj uses feature(s) that are not supported.
Well, web forms is so old, it's no longer supported in .NET Core or .NET 5.
You can read the link the error message gave you, to find out what you can do about that.
You will have to rewrite considerable parts of your app. While it is possible to just copy over source code files, that only works if the code written would work under .NET 5. If it wouldn't, like web forms, then there is no real migration path other than rewrite it.

Project architecture or setup for .Net Core Web API project

Can anyone help me to suggest a good architecture or Project setup for .net Core Web API Project?
How to handle dependency injection?
How to handle routing?
How to handle authentication?
How to do CRUD operations with the MS SQL server?
What are the best practices that should follow?
Sample project in git most preferred.
This question is really too general to answer in a prescriptive way, but Microsoft recommends using the Razor Pages approach for new ASP.NET Core web apps. This tutorial gives you a Razor quick-start, and touches on many of the concepts you asked about: https://learn.microsoft.com/en-us/aspnet/core/tutorials/razor-pages/razor-pages-start?view=aspnetcore-3.1&tabs=visual-studio
.NET Core also has a standardized dependency injection model: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/dependency-injection?view=aspnetcore-3.1
As for authn/authz, there are some decisions for you to make about whether you trust other identity providers or manage users yourself, but this will give you a start. The related sections will get you the rest of the way toward almost any auth approach: https://learn.microsoft.com/en-us/aspnet/core/security/authentication/?view=aspnetcore-3.1

How to enable fiddler for dotnet core API

I am new to dotnet core 2 API, need to find a way to enable fiddler for this.
I do not find sufficient references online. Looking for help from the community.

Pipeline Development with ASP.NET

Microsoft offers Pipeline Development via its Extensibility framework where the application can consume External Addins. I have successfully developed an extensible application on a Windows Console Project.
Now I need to implement an extensible website which accepts Addins, I googled for days for guidelines to do so, unfortunately I couldn't find any resources.
So, my question: is it possible to do that ? if yes can you provide any resources to learn from ?
I found out that you can't use M.A.F with Asp.Net because the Grabdge Collection will be very ugly.
Instead if someone ever will counterpart this question, The answer is:
You will need to use M.E.F (Managed Extensibility Framework) which comes as part of .Net 4.0+

Using Alfresco from .net?

I am trying to persuade my company to look at Alfresco rather than write something from scratch. Are there any .net houses out there who use Alfresco?
How have you found it? Where there any problems?
Alfresco is written in Java, would I have to bridge from .net to access it?
JD
I'm not aware of .NET shops that integrated Alfresco within their systems, but that's only my personal experience.
IMO, the best way to hook into Alfresco from a .NET application would be by leveraging CMIS. Apache Chemistry already provides an initial client implementation of a .NET CMIS client library.
They're in the process of issuing a new release as we speak.

Resources