Skip to content

Add code generation for server-side #1

Description

@TonEnfer

Add a protobuf compiler plugin that generates server-side code

The basic version should generate

  1. A hub class with server methods, as well as all streaming methods (server-to-client, client-to-server, bidirectional).
  2. A hub interface containing methods implemented on the client side.

To determine where the method should be implemented - on the client or server side, you should add an option. For an example, see http options, annotations, protobuf docs and their use

In the basic version, the generated code can use DTOs that protoc generates by default.

The advanced use case should allow you to choose the type of models to create to support various SignalR protocols (in order of implementation priority):

  1. System.Text.Json
  2. MessagePack
  3. Newtonsoft.Json
  4. protobuf.net

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions