Skip to content

Commit

Permalink
Fix server namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardnormier committed Feb 9, 2024
1 parent 95745d6 commit 63a6080
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion examples/json/Greeter/Server/Chatbot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using IceRpc.Json;
using VisitorCenter;

namespace GreeterJsonServer;
namespace GreeterServer;

/// <summary>Implements a dispatcher for the Greet operation.</summary>
internal class Chatbot : IDispatcher
Expand Down
2 changes: 1 addition & 1 deletion examples/json/Greeter/Server/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) ZeroC, Inc.

using GreeterJsonServer;
using GreeterServer;
using IceRpc;

// Create a server that dispatches all requests to the same service, an instance of Chatbot.
Expand Down
2 changes: 1 addition & 1 deletion examples/protobuf/Logger/Server/Chatbot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using IceRpc.Protobuf;
using VisitorCenter;

namespace GreeterLogServer;
namespace LoggerServer;

/// <summary>A Chatbot is an IceRPC service that implements Protobuf service 'Greeter'.</summary>
[ProtobufService]
Expand Down
2 changes: 1 addition & 1 deletion examples/protobuf/Logger/Server/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) ZeroC, Inc.

using GreeterLogServer;
using LoggerServer;
using IceRpc;
using IceRpc.Protobuf;
using Microsoft.Extensions.Logging;
Expand Down
2 changes: 1 addition & 1 deletion examples/protobuf/MultipleServices/Server/Chatbot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Metrics;
using VisitorCenter;

namespace MultipleInterfacesServer;
namespace MultipleServicesServer;

/// <summary>A Chatbot is an IceRPC service that implements the 'Greeter' and 'RequestCounter' Protobuf services.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion examples/protobuf/MultipleServices/Server/Program.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) ZeroC, Inc.

using IceRpc;
using MultipleInterfacesServer;
using MultipleServicesServer;

// Create a server that dispatches all requests to the same service, an instance of Chatbot.
await using var server = new Server(new Chatbot());
Expand Down
2 changes: 1 addition & 1 deletion examples/protobuf/Stream/Server/Program.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) ZeroC, Inc.

using IceRpc;
using StreamExample;
using StreamServer;

await using var server = new Server(new RandomGenerator());
server.Listen();
Expand Down
3 changes: 2 additions & 1 deletion examples/protobuf/Stream/Server/RandomGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
using Google.Protobuf.WellKnownTypes;
using IceRpc.Features;
using IceRpc.Protobuf;
using StreamExample;
using System.Runtime.CompilerServices;
using System.Security.Cryptography;

namespace StreamExample;
namespace StreamServer;

[ProtobufService]
internal partial class RandomGenerator : IGeneratorService
Expand Down
2 changes: 1 addition & 1 deletion examples/slice/CustomError/Server/Chatbot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using VisitorCenter;
using ZeroC.Slice; // for the Result<TSuccess, TFailure> generic type

namespace GreeterServer;
namespace CustomErrorServer;

/// <summary>A Chatbot is an IceRPC service that implements Slice interface 'Greeter'.</summary>
[SliceService]
Expand Down
2 changes: 1 addition & 1 deletion examples/slice/CustomError/Server/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) ZeroC, Inc.

using GreeterServer;
using CustomErrorServer;
using IceRpc;

// Create a server that dispatches all requests to the same service, an instance of Chatbot.
Expand Down
2 changes: 1 addition & 1 deletion examples/slice/Logger/Server/Chatbot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using IceRpc.Slice;
using VisitorCenter;

namespace GreeterLogServer;
namespace LoggerServer;

/// <summary>A Chatbot is an IceRPC service that implements Slice interface 'Greeter'.</summary>
[SliceService]
Expand Down
2 changes: 1 addition & 1 deletion examples/slice/Logger/Server/Program.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) ZeroC, Inc.

using GreeterLogServer;
using IceRpc;
using LoggerServer;
using Microsoft.Extensions.Logging;
using VisitorCenter;

Expand Down
2 changes: 1 addition & 1 deletion examples/slice/Quic/Server/Chatbot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using IceRpc.Slice;
using VisitorCenter;

namespace GreeterQuicServer;
namespace QuicServer;

/// <summary>A Chatbot is an IceRPC service that implements Slice interface 'Greeter'.</summary>
[SliceService]
Expand Down
2 changes: 1 addition & 1 deletion examples/slice/Quic/Server/Program.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (c) ZeroC, Inc.

using GreeterQuicServer;
using IceRpc;
using IceRpc.Transports.Quic;
using QuicServer;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;

Expand Down
2 changes: 1 addition & 1 deletion examples/slice/Stream/Server/Program.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) ZeroC, Inc.

using IceRpc;
using StreamExample;
using StreamServer;

await using var server = new Server(new RandomGenerator());
server.Listen();
Expand Down
3 changes: 2 additions & 1 deletion examples/slice/Stream/Server/RandomGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

using IceRpc.Features;
using IceRpc.Slice;
using StreamExample;
using System.Runtime.CompilerServices;
using System.Security.Cryptography;

namespace StreamExample;
namespace StreamServer;

[SliceService]
internal partial class RandomGenerator : IGeneratorService
Expand Down

0 comments on commit 63a6080

Please sign in to comment.