WCF 部署模式比較靈活,我們可以依據服務的使用目的從多種宿主中選擇一個最適合的。可用的宿主模式包括:"Self-Hosting" in a Managed Application: 也就是 Console Application 或者 WinForm Application。我們在前面的章節都是使用這種模式進行示範。它的好處是簡單、部署方便,但缺乏相關環境支援,不適合用於企業級服務部署。Managed Windows Services:
WCF 將服務異常(Exception)轉換成 SOAP faults,傳遞到用戶端後再次轉換成 Exception。只不過預設情況下,我們很難從中擷取有意義的資訊。[ServiceContract]public interface ICalculate{ [OperationContract] int Add(int a, int b);}public class CalculateService : ICalculate{ public int Add(int a, int b) {
Features in Microsoft Dynamics CRMThe following topics provide an overview of significant features andcapabilities of Microsoft Dynamics CRM. The features described are related tosecurity, organization and business structure, the entity model, the
在前面的文章中,我們曾試過用繼承的方式來實現版本更新。如果我們直接修改原有服務和資料類型會怎麼樣呢?測試原型:[DataContract]public class Data{ [DataMember] public int x;}[ServiceContract]public interface IMyService{ [OperationContract] void Test(Data d);}用戶端代理//---------------------------------------
Role-Based SecurityThe fundamental concept in role-based security is that privileges areassigned to defined categories of users (known as roles) rather than toindividual users. When a user is assigned to one of these roles, he or she isassigned the
Object-Based SecurityObject-based security applies to individual instances of entities and isprovided by using access rights. The relationship between an access right and aprivilege is that access rights apply only after privileges have taken effect.
ServiceContract 支援繼承的好處是我們可以在不影響現有用戶端的情況下自由擴充服務的功能。本文的目的是瞭解一下繼承的一些細節問題。(註:為了顯示方便,以下示範代碼中作了些刪減。)示範原型:伺服器端代碼[ServiceContract]public interface IMyService{ [OperationContract] int Add(int a, int b);}public class MyServie : IMyService{ public int
Microsoft Dynamics CRM Architecture OverviewThe following diagram illustrates the Microsoft Dynamics CRMarchitecture. The platform is the heart of the Microsoft Dynamics CRM system. When you usethe Microsoft Dynamics CRM SDK, you are building on top