Skip to content
develop
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 

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>

About

msgpack-cli based serializer for classic WCF

Resources

License

Packages

No packages published

Languages