Skip to content

DomainProtobufSerializer to TypeModel.Create #1

@khiem2794

Description

@khiem2794

Hello,
I just want to ask a quick question about this piece of code in your project

  _zone = new ClientZone(
        ClientEntityFactory.Default,
        new ProtobufChannelToServerZoneOutbound
        {
            TypeTable = new TypeAliasTable(),
            TypeModel = new DomainProtobufSerializer(),
            OutboundChannel = this
        });

    _zoneChannel = new ProtobufChannelToClientZoneInbound
    {
        TypeTable = new TypeAliasTable(),
        TypeModel = new DomainProtobufSerializer(),
        InboundClientZone = _zone
    };

I wonder if I could write TypeModel = TypeModel.Create() when init the zones ? Does it cause any drawbacks
And thank you for a great project, a very helpful one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions