实时Wcf服务托管将prefrred [英] In real time Wcf services which hosting will be prefrred

查看:91
本文介绍了实时Wcf服务托管将prefrred的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





主机的diifernt类型(iis,self / was)会实时提供,并为我发送片段或示例代码任何情况都会很明显,特别是教育领域

Hi ,

There are diifernt types(iis,self/was) of hosting are which will be preffered in real time and send snippets or sample code for me and scenario any will be appreciable especially education domain

推荐答案

为了能够确定哪种主机是适用于您的方案的最适用的主机,您应该参考您的非功能需求。通常,非功能性需求会声明应用程序的技术要求,以确保它们满足应用程序的质量和可维护性。对于WCF应用程序,这可归结为以下主题:



可用性:您希望何时能够获得服务?



可靠性:当您的服务以某种方式破坏时会发生什么?这对其他消费者有何影响?



可管理性:您是否需要轻松访问有关WCF服务所在主机上发生的事情的信息?



版本控制:您是否需要支持旧版本的服务?你知道谁在消费你的服务吗?



部署:你的部署模式是什么?您是通过Microsoft Installer进程和Visual Studio部署包安装,还是xcopy足够?



状态:您的服务是无状态的吗?您需要会议吗?

根据这些非功能性要求,您可以决定哪个主机满足您的需求。



请点击以下链接了解更多详情

托管和使用WCF服务 [ ^ ]



在以下链接中,您可以找到托管wcf服务的示例代码



关于如何托管WCF服务的初学者教程(IIS托管和自托管) [ ^ ]

WCF(Windows Communication Foundation)示例 [ ^ ]

简单示例:WCF服务 [ ^ ]
To be able to determine which host is the most applicable host for your scenario, you should refer to your nonfunctional requirements. Typically, nonfunctional requirements state technical requirements for your application to ensure they meet the quality and maintainability of your application. For WCF applications, this comes down to the following topics:

Availability: When do you want to be able to reach your service?

Reliability: What happens when your service somehow breaks? How does this affect other consumers?

Manageability: Do you need easy access to information about what is happening on the host where WCF services live?

Versioning: Do you need to support older versions of the service? Do you know who is consuming your services?

Deployment: What is your deployment model? Are you installing through the Microsoft Installer process and Visual Studio deployment packages, or is xcopy sufficient?

State: Are your services stateless? Do you need sessions?
Based on these nonfunctional requirements, you can decide which host meets your needs.

Follow below link for more detail
Hosting and Consuming WCF Services[^]

On below links you can find sample code for hosting wcf service

A Beginner's Tutorial on How to Host a WCF Service (IIS Hosting and Self Hosting)[^]
WCF (Windows Communication Foundation) Example[^]
A Simple Sample: WCF Service[^]


这篇关于实时Wcf服务托管将prefrred的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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