chronoxor / FastBinaryEncoding

Fast Binary Encoding is ultra fast and universal serialization solution for C++, C#, Go, Java, JavaScript, Kotlin, Python, Ruby, Swift
https://chronoxor.github.io/FastBinaryEncoding
MIT License
827 stars 86 forks source link

C# generated code doesn't generate Send Method #77

Closed M0n7y5 closed 1 year ago

M0n7y5 commented 1 year ago

I followed your documentation and i generated C++ code and C# code. However for some reason send method is not generated in C# code. obrazek

Same proto is used for C++ and C++ was generated without any problems.

Here is the proto

/*
   Protocol description
*/

// Domain declaration
domain com.example

// Package declaration
package proto

// Protocol version
version 1.0

enum LoginResponseCode : byte
{
    Error;
    Success;
    WrongPassOrName;
    Banned;
}

struct BaseMessage
{
    //this id is for response
    [key] int32 responseId;
    bool fireAndForget;
}

struct LoginRequest
{
    string name;
    string pass;
}

struct LoginResult
{
    string name;
    string pass;
}

// Login message declaration
message LoginMessage
{
    LoginRequest login;
}

Thank you in advance.

chronoxor commented 1 year ago

Please look into simple.fbe and corresponding Server and Client C# examples.

M0n7y5 commented 1 year ago

You should then update main readme. Anyways thx

M0n7y5 commented 1 year ago

For some reason i need tho implement this constructor, but in your example you are not doing that. Is that a bug? obrazek

M0n7y5 commented 1 year ago

You have this. obrazek

M0n7y5 commented 1 year ago

Looks like i fixed it by adding correct usings.