Using FastAPI with C# [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 days ago.
This post was edited and submitted for review 2 days ago and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
I am developing a Windows "agent" using C# that performs some tasks, and then sends information back to a centralized server. In this case, we've created a Linux-based server which is using FastAPI. It is extremely rare that the server would communicate back to the client, and 99% of all the traffic (when working) would be the client sending information to the server via FastAPI.
I can't seem to find any example code that shows interacting with FastAPI from a client, using C#. Everything I've seen seems to be written in Python.
Would anyone be able to help me find some example code on how to submit information to FastAPI using C#?

Related

.net core 3.1 sftp upload [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
This post was edited and submitted for review 1 year ago and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
Is it possible to upload files and folders using SFTP in .net core 3.1 using webclient?
We don’t want to use third party plugins like Renci.Ssh, WinSCP etc.
There is no native support for SFTP or SCP from .net.
Not sure why you are reluctant to using 3rd party libraries. But if its something which cannot be compromised on, you could look at the possibility of launching external programs as sub-processes to perform the necessary activities. However, I believe this is likely to be limited to certain capabilities only.

How create app to app communication in c#? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I have problem, because I can send data from program for example program1 to program2.
I see that can use events, observer but the problem is how.
Sorry but I not have any code.
Can anybody take here example or link for help to understand events and observers?
Let me quickly refer you to Microsoft Docs. This may or may not be exactly what you need, but it should point you in the right direction.
The linked docs list the following options:
Clipboard
COM
Data Copy
DDE
File Mapping
Mailslots
Pipes
RPC
Windows Sockets
There are many articles/guides on how to implement each of those options, so all you really have to do is to Google.
There are also obviously many other options, such as sending data over HTTP or any other easy-to-setup-and-use communications protocol already implemented in .NET (which is presumably what you are using).

Can I get data from consul without having agent on my pc [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Is there any way to get data from consul server, without having agent running on my machine. Could I make the C# code interact directly with consul server instead of using the running agent on my machine.
Also if anyone used consul in c# before, can you recommend any documentation, because I couldn't find any so far.
You can easily get any data from remote consul instance via it's HTTP API. You can find a list of client implementations here.

WebHook implementation example? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Reviewer's Note
The title is exactly as it is supposed to be, even if the accepted answer suggests WebSockets.
We are building an application where customer will send data to our application. Our application have different events, like validating the data, saving it to data base and etc. I want to notify the client about the status of their data, like the data is validated, data is saved in SQL, etc. Our backend service will be in C#. I am new to this WebHook concept and have never implemented this before. I am looking for code examples for both sending and receiving side of WebHooks.
I would really appreciate any help.
I think you are looking for WebSockets,
and to 'push' notification to the client, the proven and most popular .NET solution is SignalR, last time I checked :)
There are alternatives too, GitHub search: websockets c#
Most WebSocket libs will fallback to legacy ways, like polling, when WebSockets are not supported.

Send notification for iOS using .net or C# [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I want to send push notification on iOS device using C# or .net code. But I always failed to achieve this. Please refer best tutorial or code for this.
This seems to be a broad question and since you have only asked for the tutorial links have a look at following:
Add iPhone push notification using ASP.NET server
https://github.com/Redth/PushSharp
In a purely .Net world you might well use a technology called SignalR for this - I would look and see if there are SignalR clients available for iOS. I would be surprised if there were not...

Categories