msgpack-cli based serializer for classic WCF
Switch branches/tags
Nothing to show
Clone or download
schulz3000 minor changes
add builds and nuget to readme
fix SampleClient for corefx
add nuspec
fix dotnet 3.5 build
Latest commit cea3dfe Sep 3, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md

README.md

msgpack.wcf

msgpack-cli based serializer for WCF

based on Marc Gravell protobuf-net ServiceModel code

Builds

Build status

Nuget

deepstreamNet

Frameworks

  • DotNet >= 3.5
  • NetStandard >= 1.1

Usage

Serverside

//Add behavior in config
<system.serviceModel>
<behaviors>
    <endpointBehaviors>
          <behavior name="MsgPackBehaviorConfig">
            <MsgPackSerialization/>
          </behavior>
        </endpointBehaviors>
      </behaviors>
      <extensions>
        <behaviorExtensions>
          <add name="MsgPackSerialization" type="MsgPack.Wcf.MsgPackBehaviorExtension, MsgPack.Wcf, Version=1.0.0.0, Culture=neutral, PublicKeyToken=645f937616845218"/>
        </behaviorExtensions>
      </extensions>
      <service name="MsgPack.Wcf.SampleHost.Service">
        <endpoint address="http://localhost:6360/Service.svc" binding="basicHttpBinding" behaviorConfiguration="MsgPackBehaviorConfig"
         name="basicHttpMsgPack" contract="MsgPack.Wcf.SampleHost.IService" />
      </service>
</system.serviceModel>

Clientside

//Add behavior in Code
var client = new ServiceClient();
client.Endpoint.EndpointBehaviors.Add(new MsgPackEndpointBehavior());

//Alternative add behavior in config
<system.serviceModel>
<behaviors>
    <endpointBehaviors>
          <behavior name="MsgPackBehaviorConfig">
            <MsgPackSerialization/>
          </behavior>
        </endpointBehaviors>
      </behaviors>
      <extensions>
        <behaviorExtensions>
          <add name="MsgPackSerialization" type="MsgPack.Wcf.MsgPackBehaviorExtension, MsgPack.Wcf, Version=1.0.0.0, Culture=neutral, PublicKeyToken=645f937616845218"/>
        </behaviorExtensions>
      </extensions>
      <client>
          <endpoint address="http://localhost:6360/Service.svc" binding="basicHttpBinding"
              contract="ServiceReference.IService"
              name="basicHttpMsgPack" behaviorConfiguration="MsgPackBehaviorConfig"/>
      </client>
</system.serviceModel>