WCF服务应用程序保留其信息 [英] WCF Service Application retain it's information

查看:78
本文介绍了WCF服务应用程序保留其信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是暑假的CS学生.

我很想回去,等到秋季学期.我是WCF的新手.我已经读过Web服务== WCF.我想知道使用服务时是否有保留数据的方法.因为每次我运行该服务时,它都不会保留我的数据.所以我在考虑拥有某种外部数据.它会存放在哪里.

我想弄清楚即使操作系统刷新服务后,WCF是否也可以通过某种方式保留其数据?如果没有,我正在考虑通过创建文件夹和文本文件使它保存数据.有什么好主意吗?

Hi, I am a CS student in their summer break.

I''m anxious to go back, waiting till Fall Semester. I am kind of new to WCF. I have read that Web Services == WCF. I am wondering if there is a way to retain data when I use my service. Because each time I run the service, it doesn''t retain my data. So I was thinking of having some sort of external data. Where it will hold this.

I am trying to figure out if there is some fancy way the WCF can retain it''s data even after the OS refreshes the service? If not, I was thinking of making it hold the data by creating a folder and text files. Any good ideas?

推荐答案

Web服务不等于(!=)WCF.除了WCF之外,还有各种Web服务可用.

WCF处理端点之间的通信,并且不处理数据以及数据到达端点后的处理方式.

数据通常存储在SQL Server等数据库中.您也可以将其存储在文件中.任何持久性存储都可以使用,但是要由您提供此功能.
Web services does not equal (!=) WCF. There''s a variety of web services available besides WCF.

WCF deals with communication between endpoints and doesn''t deal with data and what you do with it once it gets to an endpoint.

Data is often stored in databases like SQL server. You could also store it in files. Any persistent storage will work, but it''s up to you to provide the functionality.


这篇关于WCF服务应用程序保留其信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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