ASP.NET Core与SignalR:构建实时应用实战指南

需积分: 13 32 下载量 122 浏览量 更新于2024-07-19 2 收藏 26.53MB PDF 举报
"Apress的《实时Web应用开发:使用ASP.NET Core、SignalR、Docker和Azure》是由Rami Vemula撰写的一本专业书籍,专为希望通过Microsoft技术实现端到端应用程序开发的开发者和软件工程师设计。本书旨在指导读者设计、开发并部署一个实际的跨平台Web应用,利用现代开源技术如ASP.NET Core、SignalR进行实时通信,以及通过Docker进行容器化和Azure的持续部署。 在学习过程中,读者将掌握的核心知识点包括: 1. 设计现代Web应用架构,采用Materialize CSS风格进行用户界面设计。 2. 使用.NET Core理解新时代的开发环境,掌握其核心组件和技术。 3. 学习Material Design的实践,创建吸引人的主题。 4. 了解Azure存储服务,包括数据管理和操作。 5. 掌握xUnit.net进行测试驱动开发,确保代码质量。 6. 安全方面,通过ASP.NET Core Identity和OAuth 2.0协议实现应用安全。 7. 使用Azure Table Storage进行主数据管理,确保数据一致性。 8. 学习如何有效处理日志和异常,提高应用的健壮性。 9. 视图组件的使用,增强导航功能和用户体验。 10. 熟悉表单和验证,确保用户输入的有效性。 11. 通过SignalR实现服务器与客户端的实时通信,提升交互性能。 12. 掌握GitHub平台用于代码版本控制,以及Travis CI的集成,实现持续集成。 13. 准备生产环境,创建Docker镜像,简化部署过程。 14. 将应用部署到Azure Linux虚拟机,利用Docker Cloud实现自动化部署。 本书适合那些希望深入学习和实践使用ASP.NET Core、SignalR和Azure构建实时Web应用的开发人员,丰富的代码示例可用于现有项目的升级或扩展。通过阅读这本书,读者将获得开发高效、安全且可扩展的现代Web应用所需的关键技能。"
2018-09-13 上传
With technology trends, demands on software have changed with more and more skilled users. Over the past few years, with services such as Facebook, Twitter and push notifications on smartphones, users are now getting used to being up to date with everything that happens all the time. With SignalR, the applications stay connected and will generate notifications when something happens either from the system or by other users thus giving new opportunities to enter into this new, exciting world of real-time application development. This is a step-by-step guide that follows a practical approach helping you as a developer getting to get started with SignalR by learning its fundamentals. It will help you through building real-time applications using the new methods and functions in the SignalR framework. Starting from getting persistent connections with the server, you will learn the basics of connecting a client to the server and how the messaging works. This will be followed by setting up a hub on the server and consuming it from a JavaScript client. Next you will be taught how you can group connections together to send messages. We will then go on to know how you can have state in the client to handle specific operations like connecting or disconnecting. Then, moving on you will learn how to secure your SignalR connections using OWIN and scaling SignalR across multiple servers. Next you will learn building a client for WPF and building a client using Xamarin that targets Windows Phone, iPhone and Android. Lastly, you will learn how to monitor the traffic in SignalR using Fiddler, Charles and hosting SignalR using OWIN.