Skip to content

Upgrade IceRpc dependencies to 0.6.x#17

Merged
externl merged 5 commits into
icerpc:mainfrom
externl:icerpc-0.6
Jun 9, 2026
Merged

Upgrade IceRpc dependencies to 0.6.x#17
externl merged 5 commits into
icerpc:mainfrom
externl:icerpc-0.6

Conversation

@externl

@externl externl commented Jun 8, 2026

Copy link
Copy Markdown
Member
  • Update README example client links from 0.5.x to 0.6.x
  • Bump all IceRpc package references to 0.6.x and add IceRpc base package
  • Replace [SliceService]/[ProtobufService] with [Service] attribute
  • Switch Slice file attribute from cs::namespace to cs::identifier
  • Removed USE_TLS_WITH_TCP.

externl added 3 commits June 8, 2026 14:42
- Update README example client links from 0.5.x to 0.6.x
- Bump all IceRpc package references to 0.6.x and add IceRpc base package
- Replace `[SliceService]`/`[ProtobufService]` with `[Service]` attribute
- Switch Slice file attribute from `cs::namespace` to `cs::identifier`
- Remove `USE_TLS_WITH_TCP` env var; TCP always uses TLS now
- Use explicit `serverAddressUri` for TCP and QUIC servers
- Use named loggers instead of generic `Server` type
- Simplify `.Map()` calls by removing explicit type arguments
- Remove `IceRpc.Transports.Quic` using directive from server file

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates this hello server sample to IceRpc 0.6.x APIs and package layout, aligning service annotations, Slice metadata, and server setup with the new release.

Changes:

  • Bumped IceRpc NuGet dependencies to 0.6.* and added the base IceRpc package.
  • Migrated service implementations from [SliceService]/[ProtobufService] to [Service] and updated router mapping calls.
  • Updated Slice attributes from cs::namespace to cs::identifier and refreshed README example client links to 0.6.x (also removing USE_TLS_WITH_TCP references).

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/slice/Greeter.slice Switch Slice C# attribute to cs::identifier for 0.6.x tooling.
src/slice/Generator.slice Switch Slice C# attribute to cs::identifier for 0.6.x tooling.
src/Hello/Stream.Slice/RandomGenerator.cs Update service attribute/namespace usage for 0.6.x ([Service]).
src/Hello/Stream.Protobuf/RandomGenerator.cs Update service attribute/namespace usage for 0.6.x ([Service]).
src/Hello/Hello.csproj Bump IceRpc package references to 0.6.* and add base IceRpc.
src/Hello/Hello.cs Update router mapping and server construction to 0.6.x patterns; remove old QUIC transport wiring.
src/Hello/Greeter.Slice/Chatbot.cs Update service attribute/namespace usage for 0.6.x ([Service]).
src/Hello/Greeter.Protobuf/Chatbot.cs Update service attribute/namespace usage for 0.6.x ([Service]).
README.md Refresh example client links to 0.6.x and remove USE_TLS_WITH_TCP documentation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md Outdated
Comment thread src/Hello/Hello.cs Outdated
@@ -1,6 +1,6 @@
// Copyright (c) ZeroC, Inc.

[cs::namespace("Hello.Greeter.Slice")]
[cs::identifier("Hello.Greeter.Slice")]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should move the Slice files to sub-dirs like in the examples.

@@ -1,6 +1,6 @@
// Copyright (c) ZeroC, Inc.

[cs::namespace("Hello.Stream.Slice")]
[cs::identifier("Hello.Stream.Slice")]
module StreamExample

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to sub-dir.

Comment thread src/Hello/Hello.cs
externl and others added 2 commits June 9, 2026 10:23
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
- Move generator.proto to stream_example/ subdirectory
- Move greeter.proto to visitor_center/ subdirectory
- Move Generator.slice to StreamExample/ subdirectory
- Move Greeter.slice to VisitorCenter/ subdirectory
- Update comment in Hello.cs to mention RandomGenerator services
@externl externl merged commit 9104aef into icerpc:main Jun 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants