C
C#4mo ago
Bailey

✅ Running in the microsoft cloud

Hello, I have to create a service which can run on the cloud (specs are not everything). So I thought, cot net 8 is compatible and using mediatr pattern for aa service is also OK. However there are possible things I didnt think of like (I do not know the real name) serive on demand which starts a program only when there is a request. Has someone any advice ? Like some short manual or something
6 Replies
Mayor McCheese
Mayor McCheese4mo ago
That sounds like an azure function, aws lambda, whatever gcp calls them. They basically all do the same thing, respond to a trigger with code. https://learn.microsoft.com/en-us/azure/azure-functions/functions-get-started https://docs.aws.amazon.com/lambda/latest/dg/lambda-csharp.html https://codelabs.developers.google.com/codelabs/cloud-functions-csharp
Bailey
Bailey4mo ago
Many thanks
Unknown User
Unknown User4mo ago
Message Not Public
Sign In & Join Server To View
Bailey
Bailey4mo ago
I'll try to rewrite the question. I'm writing a asp.net c# service with the mediatr pattern. If I'm correct this should be compatible with a cloud deployment like azure. Because of the answer earlier I found that there are 2 global options running like a service on a Virtual machine iis server(called app if I'm correct) machine and running like a function. So that solved a lot. Now still looking for when to use function and when to use the app. With the mediatr pattern it's easy to switch. The service is'nt used frequently but to access the program, oauth2 is manditory. The questions are: - Is dotnet6 compatible or do I have to do something extra to run asp.net in azure - what to use (app or function and when to use one or the other).
Unknown User
Unknown User4mo ago
Message Not Public
Sign In & Join Server To View
Bailey
Bailey4mo ago
Ok, thanks
Want results from more Discord servers?
Add your server
More Posts
problem with console writeline```cs Console.WriteLine("Please select a file to load."); string[] filePaths = Directory.GetFiles(@.HasPrincipalKey -> Specify different column nameI need to use `.HasPrincipalKey` in Fluent, but I need the resulting column to be named differently WPF mousePos and icon.Margin align. Visual rep does not.So I'm trying to make an icon visible in a map at the same position as the mouseclick, but it alwaysHow do I refresh view data from inside of a view?I have a SignalR setup, and I have it where when I press on a button, it will send a message to the ✅ Why is an explicit cast needed even though the implicit cast operator is available?No explicit cast is needed. ```csharp var (x, y) = GetPoint(); static (float re, float im) GetPoint(Need help in getting my dice to hold and release in a yahtzee type game.I am having issues with being able to hold and release dice in a yahtzee game. This was working, buTrying to read from a binary fileNew to c#, trying to validate a username and password from a binary file, but getting the issue 'TooHow to pass a Type to a method for a return of the same typeStruggling to find the right syntax for this. I'm trying to specify a type that should be used to crmathim brand new to C# and Im making a wage calculator but the math is wrong, it keeps rounding the outpSystem.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: APostmanden has an API written with the GET method that we can access from the browser without any pr