原文:Prism for WPF 搭建一个简单的模块化开发框架(四)异步调用WCF服务.WCF消息头添加安全验证Token 为什么选择wcf? 因为好像wcf和wpf就是哥俩,,, 为什么选择异步调用? 用起来体验相对好一点,不会因为服务的速度影响用户体验,避免页面假死 首先新建一个wcf服务程序 public class ServiceLogin : IServiceLogin { public bool Login(string username, string pwd) { if (…
先简单的介绍一下Prism框架,引用微软官方的解释: Prism provides guidance to help you more easily design and build, flexible, and easy-to-maintain client business apps that run on Windows Runtime, Windows Presentation Foundation (WPF) desktop, Silverlight, or Windows Phone…