Skip to content

BeyondDimension/SteamClient

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
June 2, 2023 14:23
ref
June 14, 2023 16:59
src
June 14, 2023 16:59
June 1, 2023 20:08
March 1, 2023 18:28
June 2, 2023 14:23
June 1, 2023 20:08

SteamClient

Steam 客户端 API 调用

协议缓冲区基础知识:C#

Proto files

📁 项目文件夹结构

  • pkg Release 配置下生成编译的 nuget 包存放目录
  • ref 子模块引用其他仓库目录,在解决方案中的 1.Reference 文件夹下
  • src 源码目录

🏗️ 解决方案结构

  • 0.Root 项目根文件夹
    • Source 共享源码
      • ImplicitUsings 全局命名空间引用
      • AssemblyInfo.cs 程序集信息
      • Utils.cs 项目工具类
    • TFM .NET 目标框架
    • .editorconfig 代码样式配置
    • .gitignore Git 忽略扩展名与路径配置
    • .gitmodules Git 子模块配置
    • Directory.Build.props csproj 全局项目共享配置
    • Directory.Packages.props NuGet 中央包管理
    • GeneratePackage.props NuGet 发行包信息
    • nuget.config NuGet 包源配置
  • 1.Reference 引用子模块依赖项目
  • BD.SteamClient
    • Constants 静态类常量
    • Extensions 扩展函数
    • Helpers 静态助手类
    • Services 服务接口
    • Services.Implementation 服务接口实现
  • BD.SteamClient 基本库
    • Columns 列接口
    • Enums 枚举
    • Extensions 扩展函数
  • BD.SteamClient.Models.Protobuf Protobuf 模型库
  • BD.SteamClient.UnitTest 单元测试
    • XXXXUnitTest.cs 对某个功能进行测试

注意事项

  1. ServiceCollectionExtensions.*.cs DI 注册服务扩展类,命名空间统一使用
// ReSharper disable once CheckNamespace
namespace Microsoft.Extensions.DependencyInjection;
  1. Extensions 扩展函数,命名空间使用
// ReSharper disable once CheckNamespace
namespace BD.SteamClient;