Skip to content

.NET packages and compatibility

The BetFeedPro NuGet feed is public. Version 1.7.0 of all three packages targets net10.0. Use the .NET 10 SDK to build the example client. The Edge container already includes its runtime. Public BetFeedPro NuGet feed

Package Use
FeedHub.Edge.Client Generated gRPC client and protobuf types for Edge’s local API. Use it for a .NET application that calls Edge over gRPC. The REST API uses JSON over HTTP.
FeedHub.Contracts Canonical FeedHub wire types and message contracts for direct feed consumers. Use this when your integration was provisioned for direct consumption.
FeedHub.Client Feed application rules and state handling for direct feed consumers. It references FeedHub.Contracts at the same version.

Add the package reference to your net10.0 project.

<ItemGroup>
<PackageReference Include="FeedHub.Edge.Client" Version="1.7.0" />
</ItemGroup>

Add the BetFeedPro source to your project’s NuGet.Config. If you use package source mapping, map the three FeedHub IDs to BetFeedPro and retain your mappings for other dependencies. This example uses NuGet.org for the other dependencies, including Google.Protobuf and Grpc.Net.Client.

<configuration>
<packageSources>
<clear />
<add key="BetFeedPro" value="https://releases.betfeedpro.com/nuget/index.json" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
<packageSourceMapping>
<packageSource key="BetFeedPro">
<package pattern="FeedHub.Edge.Client" />
<package pattern="FeedHub.Contracts" />
<package pattern="FeedHub.Client" />
</packageSource>
<packageSource key="nuget.org">
<package pattern="*" />
</packageSource>
</packageSourceMapping>
</configuration>

Run from the project directory.

Terminal window
dotnet restore --configfile NuGet.Config
dotnet build --no-restore

The generated client is FeedHub.Edge.V1.FeedEdge.FeedEdgeClient. With the loopback installation, use a gRPC channel to http://127.0.0.1:8090. The REST endpoint is on port 8089. Install Edge in the sandbox

The three NuGet packages share a version. Edge images have a separate release sequence. Compare the local API contract offered by the Edge image with the calls and fields your application uses.

Edge image .NET gRPC package Local API
1.1.0 FeedHub.Edge.Client 1.7.0 feedhub.edge.v1 gRPC and /local/v1 REST

For this pair, the package’s gRPC client was generated from the same proto supplied with the image release. Within an API version, changes are additive. An older client can use its existing calls against a newer Edge that still serves that API version. Upgrade Edge before using newly introduced calls or fields. For changes that require a new local API version, an Edge image serves the current and preceding local API versions, as listed in its release notes. Edge 1.1.0 release notes

  1. Choose a supported Edge release allowed on your instance. Review its release notes for FeedHub prerequisites and local API versions, and verify the new image digest and SBOM. Bring forward your sandbox configuration and check it against the new kit. Edge releases
  2. For Compose, use the new release’s Compose file and preserve the intended port bindings. Set EDGE_IMAGE_TAG to the new tag@sha256:digest, then run docker compose -f docker-compose.yml pull and docker compose -f docker-compose.yml up -d. For Helm, update image.tag to the new pinned digest in values.yaml and run helm upgrade feedhub-edge "$CHART" --namespace feedhub-sandbox --values values.yaml, where CHART is the path to the new release chart.
  3. For Helm, wait for the updated deployments with kubectl -n feedhub-sandbox rollout status deployment -l app.kubernetes.io/instance=feedhub-edge, then open a new port-forward. Check health, initial readiness and data status on the new Edge. Clients reconnect to updated replicas and receive a fresh snapshot when their token came from a replaced replica. Plan for this interruption during the upgrade. Edge runbook
  4. Update the application’s package reference as needed and verify its calls against the upgraded Edge. If your direct-feed integration uses both FeedHub.Client and FeedHub.Contracts, upgrade them together.

A deprecated image keeps serving and logs a warning. A disabled image exits even when pinned by digest. Follow the replacement release named in the published notes.