Extending heavy client by a mobile application [closed] - c#

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

Related

get started with wpf and azure [closed]

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

Can a C# application be accessed from an android mobile? [closed]

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 1 year ago.
Improve this question
​I have been developing custom applications in C# and SQL Server. I have a new requirement where the customer wants to be able to access their application from their android or apple mobile phone too.
I need to know whether a desktop application developed in C# and SQL Server would have this feature or if any components can be plugged-in to enable that feature? Or if not, what would it take to achieve this.
I just need to be pointed in the right direction and I'll figure out the rest.
Thank you
Visual studio gives you the ability to build Native Android and iOS app using xamarin. It can solve your problem but it really depends on your software.
SQL, however, is unsupported by Android and iOS, if the database needs to reside on the device, you need to use another db, like SQLite for Android.
If the database can be a remote db, you can build an API (REST?) and access to it using this API
Native Android and iOS development with VS

Accessing C# libraries over the web [closed]

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 7 years ago.
Improve this question
First of all, this question is made because of my lack of knowledge on windows related technologies. Now the question.
I have made an speech recognition application using Windows Speech API, using C#.Net. I am on windows 7 ultimate.
Now I need to make this application into an API, where the other applications can use its services. My other application is a web application.
I am thinking about purchasing a windows instance from Amazon cloud and adding this API into it with a web service, so my other application can access it via a REST api or something.
Is this possible with windows C#, specially with SpeechRecognition?
You could try hosting your library inside a wcf service and try making a call to the service from a locally hosted web application.

How to create chat functionality in ASP.NET 4.0 [closed]

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 7 years ago.
Improve this question
I want to develop 1 chat functionality in my ASP.NET website, I have 1 Registered_User.aspx page and here in this page I want to show all the registered users with online and offline mode, after that when I select the online user for chat one message should be delivered to that user in the form of Accept/Decline and if user accept the chat then chat will be start otherwise chat will be decline.
You can implement everything you want just by using SignalR which is a new library for ASP.NET developers that makes it incredibly simple to add real-time web functionality to your applications. What is "real-time web" functionality? It's the ability to have your server-side code push content to the connected clients as it happens, in real-time.
You'll find a tutorial for Getting Started with SignalR 2
For your purpose you can establish a temporal connection perhaps by notification then establish the persistent one.

Using iOS for existing .Net MVC database [closed]

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 8 years ago.
Improve this question
I currently have an MVC 4 app running on a Windows Azure website. Some of the users need to use the app, but may be at a location without internet access. The goal is to have an iPad app with offline capability, and will push the changes to the Windows Azure database when an internet connection is established. I am in the planning process, and I have questions about how both apps can use the same database concurrently. When I create a Windows Azure Mobile Service and use the same database the Azure dashboard does not show the existing tables used by the MVC app. Is it possible for both the iOS app and MVC 4 app to use the same tables, or am I going to have to go a different way? Thanks.
You would have to write web api against your database,its very easy to Write Web Api 2 that can easily communicate with any sort of device or application because it is HTTP based.I personally have done this. Web api returns xml or JSON based data you can use this to populate your local database in your iOS Application.
You can also implement some logic to save data back to the database when you got connected to the internet.
The iOS app should absolutely not connect directly to your database. I actually don't think it's possible through the iOS SDK to do that if you wanted to, anyways, but just in case: don't.
Instead, your iOS app should connect to an API that you will need to build. The API, alone, will interact with the database. You can also retrofit your existing website to use the API as well, removing database concurrency issues entirely.

Categories