diff --git a/src/IceRpc.Locator/README.md b/src/IceRpc.Locator/README.md index fa71279c12..8ebcf28889 100644 --- a/src/IceRpc.Locator/README.md +++ b/src/IceRpc.Locator/README.md @@ -30,7 +30,8 @@ pipeline = pipeline .UseLocator(locatorProxy) .Into(connectionCache); -// A call on this proxy will use the locator to find the server address(es) associated with `/hello`. +// A call on this proxy will use the locator to find the server address(es) associated with +// `/hello`. // The locator interceptor caches successful resolutions. var wellKnownProxy = new HelloProxy(pipeline, new Uri("ice:/hello")); diff --git a/src/IceRpc.Slice/README.md b/src/IceRpc.Slice/README.md index 93c769a7dc..4720791280 100644 --- a/src/IceRpc.Slice/README.md +++ b/src/IceRpc.Slice/README.md @@ -55,8 +55,8 @@ server.Listen(); await CancelKeyPressed; await server.ShutdownAsync(); -// Class IceRpc.Slice.Service is an IceRPC dispatcher. This dispatch is implemented by Chatbot and helper code provided -// by the IGreeterService interface generated by the Slice compiler. +// Class IceRpc.Slice.Service is an IceRPC dispatcher. This dispatch is implemented by Chatbot and +// helper code provided by the IGreeterService interface generated by the Slice compiler. internal class Chatbot : Service, IGreeterService { public ValueTask GreetAsync( diff --git a/src/IceRpc.Templates/README.md b/src/IceRpc.Templates/README.md index 32345a777d..3af7921eba 100644 --- a/src/IceRpc.Templates/README.md +++ b/src/IceRpc.Templates/README.md @@ -1,5 +1,7 @@ # Templates for IceRPC +[Source code][source] | [Package][package] + IceRpc.Templates provides `dotnet new` project templates for [IceRPC][icerpc]. The following templates are included: | Template Name | Description | @@ -35,8 +37,6 @@ dotnet build dotnet run ``` -[Source code][source] | [Package][package] - [icerpc]: https://www.nuget.org/packages/IceRpc [package]: https://www.nuget.org/packages/IceRpc.Templates [source]: https://github.com/icerpc/icerpc-csharp/tree/main/src/IceRpc.Templates diff --git a/src/IceRpc/README.md b/src/IceRpc/README.md index ef376e947b..ebc3a1be3f 100644 --- a/src/IceRpc/README.md +++ b/src/IceRpc/README.md @@ -30,8 +30,8 @@ async Task GreetAsync(string name) Payload = StringCodec.EncodeString(name) }; - // Make the invocation: we send the request using the client connection and then wait for the response. Since the - // client connection is not connected yet, this call also connects it. + // Make the invocation: we send the request using the client connection and then wait for the + // response. Since the client connection is not connected yet, this call also connects it. IncomingResponse response = await connection.InvokeAsync(request); // When the response's status code is Ok, we decode its payload. @@ -63,14 +63,19 @@ await server.ShutdownAsync(); internal class Chatbot : IDispatcher { - public async ValueTask DispatchAsync(IncomingRequest request, CancellationToken cancellationToken) + public async ValueTask DispatchAsync( + IncomingRequest request, + CancellationToken cancellationToken) { if (request.Operation == "greet") { string name = await StringCodec.DecodePayloadStringAsync(request.Payload); Console.WriteLine($"Dispatching greet request {{ name = '{name}' }}"); - return new OutgoingResponse(request) { Payload = StringCodec.EncodeString($"Hello, {name}!") }; + return new OutgoingResponse(request) + { + Payload = StringCodec.EncodeString($"Hello, {name}!") + }; } else { diff --git a/src/ZeroC.Slice/README.md b/src/ZeroC.Slice/README.md index 6488f07a58..595303fb62 100644 --- a/src/ZeroC.Slice/README.md +++ b/src/ZeroC.Slice/README.md @@ -17,6 +17,8 @@ Unlike older C# libraries, Slice relies on [System.Buffers][cs-buffers] (`IBuffe ## Sample Code ```slice +// Slice definition + struct Person { name: string id: int32 @@ -42,8 +44,8 @@ public partial record struct Person ... } - /// Constructs a new instance of and decodes its fields from a Slice decoder. - /// + /// Constructs a new instance of and decodes its fields from + /// a Slice decoder. /// The Slice decoder. public Person(ref SliceDecoder decoder) {