ServiceModel.Grpc.MessagePackMarshaller 1.6.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package ServiceModel.Grpc.MessagePackMarshaller --version 1.6.1
NuGet\Install-Package ServiceModel.Grpc.MessagePackMarshaller -Version 1.6.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ServiceModel.Grpc.MessagePackMarshaller" Version="1.6.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ServiceModel.Grpc.MessagePackMarshaller --version 1.6.1
#r "nuget: ServiceModel.Grpc.MessagePackMarshaller, 1.6.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ServiceModel.Grpc.MessagePackMarshaller as a Cake Addin
#addin nuget:?package=ServiceModel.Grpc.MessagePackMarshaller&version=1.6.1

// Install ServiceModel.Grpc.MessagePackMarshaller as a Cake Tool
#tool nuget:?package=ServiceModel.Grpc.MessagePackMarshaller&version=1.6.1


ServiceModel.Grpc enables applications to communicate with gRPC services using a code-first approach (no .proto files), helps to get around limitations of gRPC protocol like "only reference types", "exact one input", "no nulls", "no value-types". Provides exception handling. Helps to migrate existing WCF solution to gRPC with minimum effort.

ServiceModel.Grpc.MessagePackMarshaller is package with IMarshallerFactory implementation, based on MessagePack serializer.

Configure ClientFactory

Instruct ClientFactory to use MessagePackMarshallerFactory as default marshaller for all clients.

IClientFactory defaultClientFactory
    = new ClientFactory(new ServiceModelGrpcClientOptions
        // set MessagePackMarshaller as default Marshaller
        MarshallerFactory = MessagePackMarshallerFactory.Default

Instruct ClientFactory to use MessagePackMarshallerFactory for concrete client.

// client factory with default (DataContractMarshallerFactory) marshaller
IClientFactory defaultClientFactory = new ClientFactory();

// set MessagePackMarshaller only for ICalculator client
defaultClientFactory.AddClient<ICalculator>(options =>
    options.MarshallerFactory = MessagePackMarshallerFactory.Default;

Configure ServiceModel.Grpc.AspNetCore

Instruct ServiceModel.Grpc code-first to use MessagePackMarshallerFactory as default marshaller for all endpoints.

var builder = WebApplication.CreateBuilder();

// enable ServiceModel.Grpc code-first
builder.Services.AddServiceModelGrpc(options =>
    // set MessagePackMarshaller as default Marshaller
    options.DefaultMarshallerFactory = MessagePackMarshallerFactory.Default;

Instruct ServiceModel.Grpc code-first to use MessagePackMarshallerFactory for concrete endpoint.

var builder = WebApplication.CreateBuilder();

// enable ServiceModel.Grpc code-first with default (DataContractMarshallerFactory) marshaller

// set MessagePackMarshaller only for Calculator endpoint
builder.Services.AddServiceModelGrpcServiceOptions<Calculator>(options =>
    options.MarshallerFactory = MessagePackMarshallerFactory.Default;

Configure ServiceModel.Grpc.SelfHost

Instruct ServiceModel.Grpc code-first to use MessagePackMarshallerFactory.

var server = new Grpc.Core.Server();

// set MessagePackMarshaller for Calculator endpoint
    ()=> new Calculator(),
    options =>
        options.MarshallerFactory = MessagePackMarshallerFactory.Default;
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ServiceModel.Grpc.MessagePackMarshaller:

Package Downloads

Copyright © Septa 2023

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.8.1 88 2/13/2024
1.8.0 192 1/7/2024
1.7.0 137 12/24/2023
1.6.1 1,231 11/25/2023
1.6.0 800 9/9/2023
1.5.2 626 6/25/2023
1.5.1 14,223 5/1/2023
1.5.0 351 3/7/2023
1.4.13 1,246 12/19/2022
1.4.12 404 11/19/2022
1.4.11 394 10/23/2022
1.4.10 1,103 8/14/2022
1.4.9 686 7/23/2022
1.4.8 535 5/29/2022
1.4.7 487 5/21/2022
1.4.6 498 4/3/2022
1.4.5 448 3/26/2022
1.4.4 435 3/12/2022
1.4.3 450 2/5/2022
1.4.2 470 1/22/2022
1.4.1 286 1/8/2022
1.4.0 2,494 11/26/2021
1.3.2 357 11/5/2021
1.3.1 444 10/10/2021
1.3.0 354 7/31/2021
1.2.1 314 6/12/2021
1.2.0 372 6/6/2021
1.1.9 329 5/8/2021