Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I want to create a wpf application which connects to a service on Azure where some calculations are done. The wpf application should sent some data to the service. The service should return some data back to the wpf application.
-I can program with wpf and c# however I am totally new with Azure and web/internet programming.
-An Azure account is already present.
-It must be a wpf application, not a website.
I have been trying to find out the correct information without luck, still no clue where to start.
Who can point me into the correct direction? Specially a sample would be great.
first, go to learn.microsoft.com/learn to get familiar with Azure. Then, you just need to code some API which will be hosted on Azure and will perform the calculations you want.
An easy way to get started is through Azure Functions with Http Trigger. It will generate an endpoint which you'll call in your WPF application:
https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-http-webhook-trigger?tabs=csharp
To call your API, I recommend Flurl as it's more developer friendly:
https://www.hanselman.com/blog/UsingFlurlToEasilyBuildURLsAndMakeTestableHttpClientCallsInNET.aspx
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have a normal desktop application written in C#. Now I want an extra mobile application that uses the same information / data from the desktop application.
My question is how can I make a connection between my desktop application and my mobile application?
Atm I got two solution in mind:
-Make a webservice to provide data for the mobile application
-Use a database where the application can write stuff and the mobile application can read stuff from here
What do you guys think?
The best thing todo is to make like a REST service for it. This REST services communicates with your database to get the needed data from your database to your mobile application.
In your mobile application you make calls to this service using httpclient to get the data on your phone. You could chose to save this data locally in an SQLite database ( so people can use the app also offline ).
Hope this helps
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
please tell me how to retrieve a data from online database(table)?. I just created a table in enter link description here
And I made a SQL database. And can anyone tell me how to retrieve a data from that?
It is strongly advised for you to not directly connect to a database straight from Xamarin for (at the very least) 2 distinctive reasons:
1. Your credentials for the database will be in your app code, meaning anyone can just decompile your app and read your login info - huge security risk.
2. By connecting to a online database straight from Xamarin you'll most probably overload the database server (they allow only a small number of connections).
Usually when you need data from a database you work with an API that you build yourself. For example A php site, or an ASP.NET web api.
Xamarin communicates with your web site (e.g. www.yoursite.com/api/getinformation). This way your credentials are safe in the website, and your app connects only to your site, which is better because you can cache information there, preventing an overload on your site.
Reading material that will help you:
Xamarin forum link to php+mysql+Xamarin
Consuming REST-API's with
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
There are two ways defined in the Microsoft site in order to create the azure VM.
Creating from C#
Create using Chef
I want to know what is the difference and what would be flexibility can be achieved using the process defined, as VM can also be managed from the Azure portal like Chef Server.
My scenario is to provide the complete automation in creating the azure VM and deploy the app package on it after installing the IIS.
There are like 10 different ways to create a VM in Azure (6 or so different SDK's, Powershell\Cli\Cli2\Rest Request\Arm Template\probably something else).
If chef can create a vm in Azure it is using one of those ways internally to do so. The main difference is what you have to know\do for one of the methods to work.
To automate app deployment to an Azure VM you can use different means (script extension\DSC\Ansible\Chef\puppet\etc).
Also, you question is too broad to be answered with more precision.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I want to create WCF Service in c# in Visual Studio 2015 which will check automatically my directory with FileSystemWatch every hour or even all the time.
It is even possible to create service like this? Which will be call void function without request?
I didnt find nothing in google for few hours...
I dont have much experience with WCF Services...
Regards!
No. without request is impossible to do this.
You must have client that call the service.
Request can have void method but some WinService or ConsoleApp must call WCF service each time when You want to run WCF service.
Your best solution seems to be a Windows Service or a console application running via a scheduler to check for file system changes.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I bumped into OWIN and Katana and I am now trying to understand what this is really about. From what I understand is that it simply tries to separate the web application from the web host.
So it basically says that when you build an ASP.NET MVC web application that your tied to IIS when you deploy the web application. With OWIN/Katana you don't have that problem. That's what I understand from it, is this correct?
If so, then why would I want to use OWIN/Katana in my project when I could simply use "mod_mono" to deploy my ASP.NET web application to a server like NGINX, Apache etc.
Because that's basically the goal of the OWIN project right? But I find it more trouble to implement OWIN/Katana into my web application then to just simply use the Web API of MVC and later on deploy it to a Mono environment. I could even run it in Linux if i want.
So when should one choose OWIN/Katana over Mod Mono? Does it really makes a difference in the end?