3 个仓库
Automatically produced type-safe proxies for facilitating communication between different language runtimes.
Distinct from TypeScript Type Definitions: Focuses on the generated proxies for .NET-to-TypeScript communication rather than general type definitions.
Explore 3 awesome GitHub repositories matching software engineering & architecture · Generated Client Proxies. Refine with filters or upvote what's useful.
NSwag is a toolchain for the .NET ecosystem designed to automate the generation of API documentation, server controllers, and typed client proxies from OpenAPI contracts. It functions as a contract-first API tool that enables the creation of server-side boilerplate and client libraries based on predefined specifications. The suite distinguishes itself through its ability to extract OpenAPI specifications from existing ASP.NET Core code via reflection and its capacity to generate type-safe TypeScript client proxies. It also provides an interactive documentation server that hosts and renders th
Builds frontend services that communicate with .NET backends using automatically generated proxies and shared type definitions.
MagicOnion 是一个 .NET RPC 框架,用于使用共享接口构建类型安全的远程过程调用服务,以实现服务器和客户端之间的通信。它作为一个二进制序列化框架和分布式服务编排器,为低延迟流和实时数据交换提供了网络层。 该项目通过一个 AOT 兼容的网络客户端脱颖而出,该客户端使用源生成器来支持受限运行时环境中的提前编译。它支持双向通信和实时数据流,允许服务器和多个客户端异步推送消息而无需轮询。 该框架涵盖了广泛的功能面,包括基于会话的有状态连接管理、用于验证的基于拦截器的请求管道,以及基于角色的访问控制。它还包括观测工具(如基于心跳的连接监控和服务器性能指标),以及对 Unity 网络通信的支持。
Uses source generators to produce static client proxies, ensuring compatibility with AOT-compiled environments.
MagicOnion 是一个用于 .NET 平台和 Unity 的远程过程调用(RPC)框架。它作为一个二进制 API 协议和实时通信引擎,使用共享接口在客户端和服务器之间提供类型安全的通信。 该框架通过其与提前(AOT)编译环境的兼容性脱颖而出,利用源生成器进行客户端代理和序列化,以支持包括使用 IL2CPP 的移动和主机平台。它为 Unity 提供了一个专门的中间件层,处理引擎特定的数据类型并确保运行时兼容性。 该项目涵盖了广泛的网络功能,包括双向数据流、一元请求-响应周期以及服务器到客户端的推送消息。它包括对通过 TLS 加密和 JWT 身份验证的内置安全支持,以及有状态的每客户端会话管理和基于拦截器的请求过滤。 诊断工具可用于监控通信状态、跟踪服务器性能指标,并将服务器端堆栈跟踪传播到客户端进行调试。
Produces client-side proxy code during compilation to remove runtime reflection and support AOT platforms.