From faaa0ba8f182de408e853cbd8e8b2f1432b997ba Mon Sep 17 00:00:00 2001 From: John Colvin Date: Fri, 16 Feb 2024 14:52:50 -0500 Subject: [PATCH] refactor: Rename WebsocketServerConfig proto pkg 'bts.websocket_core' This matches the namespace used in spark_websocket csproj. Eventually, I'd like to use conventional capitalization (TitleCase namespaces/types, etc.), but let's shelf that until we have enough time/energy to do a more comprehensive refactoring. --- .../spark_websocket/Core/IWebsocketConnectionGateway.cs | 2 -- src/client/spark_websocket/Core/WebsocketConnectionGateway.cs | 2 -- .../spark_websocket/Core/WebsocketServerConfigExtensions.cs | 2 +- src/client/spark_websocket/WebsocketServerConfig.proto | 4 ++-- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/client/spark_websocket/Core/IWebsocketConnectionGateway.cs b/src/client/spark_websocket/Core/IWebsocketConnectionGateway.cs index 23ddad8bc..b60fda1c2 100644 --- a/src/client/spark_websocket/Core/IWebsocketConnectionGateway.cs +++ b/src/client/spark_websocket/Core/IWebsocketConnectionGateway.cs @@ -1,5 +1,3 @@ -using Bts.Websocket; - using System; using System.Collections.Generic; using System.Reflection; diff --git a/src/client/spark_websocket/Core/WebsocketConnectionGateway.cs b/src/client/spark_websocket/Core/WebsocketConnectionGateway.cs index 193595cc5..320ff6128 100644 --- a/src/client/spark_websocket/Core/WebsocketConnectionGateway.cs +++ b/src/client/spark_websocket/Core/WebsocketConnectionGateway.cs @@ -1,5 +1,3 @@ -using Bts.Websocket; - using System.Net.WebSockets; using System.Text; using System.Collections.Concurrent; diff --git a/src/client/spark_websocket/Core/WebsocketServerConfigExtensions.cs b/src/client/spark_websocket/Core/WebsocketServerConfigExtensions.cs index dbf6a1cda..8930880b0 100644 --- a/src/client/spark_websocket/Core/WebsocketServerConfigExtensions.cs +++ b/src/client/spark_websocket/Core/WebsocketServerConfigExtensions.cs @@ -1,4 +1,4 @@ -namespace Bts.Websocket; +namespace bts.websocket_core; using Microsoft.AspNetCore.Builder; diff --git a/src/client/spark_websocket/WebsocketServerConfig.proto b/src/client/spark_websocket/WebsocketServerConfig.proto index 617148108..7b0d55228 100644 --- a/src/client/spark_websocket/WebsocketServerConfig.proto +++ b/src/client/spark_websocket/WebsocketServerConfig.proto @@ -1,8 +1,8 @@ syntax = "proto3"; -option csharp_namespace = "Bts.Websocket"; +option csharp_namespace = "bts.websocket_core"; -package Bts.Websocket; +package bts.websocket_core; message WebsocketServerConfig { string host = 1;