如何使用C#(xamarian andriod)从云服务器读取和写入数据 [英] How do I read and write data from cloud server using C#(xamarian andriod)

查看:258
本文介绍了如何使用C#(xamarian andriod)从云服务器读取和写入数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我想为我的Android应用程序创建一个登录系统。为此,我需要将用户名和密码存储到Cloud Server并在登录期间检索该数据。如果用户名和密码匹配,则个人可以访问我的应用程序。



所以我想知道需要知道什么或者请给我足够的学习如何使用c#读取和写入数据的链接。



您可以从名为homebudget.homebudget的Google Play商店查看我的应用程序< br $> b $ b

[ ^ ]





问候,

Subrata Mitra



什么我试过了:



我刚用c#

解决方案

读出了http服务器客户端



要完成这项任务,你可以这样做:

1 - 用数据库创建一个web api登录和密码。您可以使用此应用程序发送云: VPS / VDS主机。 ASP.Net MVC主机。免费ASP.Net主机



要创建web api,请链接:

RESTful Day#5:Web API中的安全性 - 使用Action Filters的Web API中的基本身份验证和基于令牌的自定义授权



在ASP.NET核心中创建Web API



在ASP NET Web API中实现基本身份验证 - YouTube



2 - 使用httpclient库的休息服务使用此web api

Xamarin Android - 使用HttpClient消费REST服务

Hello,
I want to make a log in system for my android application. For that I need to store user name and password to Cloud Server and retrieve that data during login. If user name and password have match case then individual can able to access my application.

So I want to know what are the required things to know or please provide me sufficient links to learn how to data can be read and write to cloud server using c#.

You can check my app from google play store named as "homebudget.homebudget"

[^]


with regards,
Subrata Mitra

What I have tried:

I just read out http server client using c#

解决方案

Hi,

To this task, you can do this:
1 - Create a web api with database to login and password. This application you can send cloud like this: VPS/VDS Hosting. ASP.Net MVC Hosting. Free ASP.Net Hosting

To create web api, link:
RESTful Day #5: Security in Web APIs-Basic Authentication and Token based custom Authorization in Web APIs using Action Filters

Creating Web API in ASP.NET Core

Implementing basic authentication in ASP NET Web API - YouTube

2 - Consume this web api using rest service with httpclient library
Xamarin Android - Consuming REST Services With HttpClient


这篇关于如何使用C#(xamarian andriod)从云服务器读取和写入数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆