From ea22124187422bb38ae5db171b9ef1a1a10af14b Mon Sep 17 00:00:00 2001 From: CodeLiturgy Date: Sat, 13 Aug 2022 01:29:10 +0100 Subject: [PATCH] Remove unused modules --- BlueWest.BinanceDataAgent/Binance.cs | 28 ---------------- .../BlueWest.DataAgent.csproj | 18 ---------- .../Core/Http/AgentHttp.cs | 33 ------------------- .../BlueWest.GrpcClient.csproj | 24 -------------- BlueWest.GrpcClient/Program.cs | 16 --------- BlueWest.GrpcClient/Protos/greet.proto | 13 -------- 6 files changed, 132 deletions(-) delete mode 100644 BlueWest.BinanceDataAgent/Binance.cs delete mode 100644 BlueWest.BinanceDataAgent/BlueWest.DataAgent.csproj delete mode 100644 BlueWest.BinanceDataAgent/Core/Http/AgentHttp.cs delete mode 100644 BlueWest.GrpcClient/BlueWest.GrpcClient.csproj delete mode 100644 BlueWest.GrpcClient/Program.cs delete mode 100644 BlueWest.GrpcClient/Protos/greet.proto diff --git a/BlueWest.BinanceDataAgent/Binance.cs b/BlueWest.BinanceDataAgent/Binance.cs deleted file mode 100644 index b5b48e0..0000000 --- a/BlueWest.BinanceDataAgent/Binance.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Net.Http; -using System.Threading.Tasks; -using BlueWest.Core.ComponentSystem; -using BlueWest.Tools; -using PerformanceSolution.Artefacts; - -namespace BlueWest.DataAgent -{ - - public class Binance : Artefact, EventListener - { - protected override void Start() - { - base.Start(); - Console.WriteLine("Binance Started"); - } - - public void TryGetExampleData() - { - var response = AgentHttp.GetAsync("/uri"); - } - - public void OnEvent(CommandRequestEvent eventType) - { - } - } -} \ No newline at end of file diff --git a/BlueWest.BinanceDataAgent/BlueWest.DataAgent.csproj b/BlueWest.BinanceDataAgent/BlueWest.DataAgent.csproj deleted file mode 100644 index c3bfce7..0000000 --- a/BlueWest.BinanceDataAgent/BlueWest.DataAgent.csproj +++ /dev/null @@ -1,18 +0,0 @@ - - - - net5.0 - disable - enable - - - - - - - - - - - - diff --git a/BlueWest.BinanceDataAgent/Core/Http/AgentHttp.cs b/BlueWest.BinanceDataAgent/Core/Http/AgentHttp.cs deleted file mode 100644 index a7f2176..0000000 --- a/BlueWest.BinanceDataAgent/Core/Http/AgentHttp.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System.Collections.Generic; -using System.Net.Http; -using System.Threading.Tasks; -using BlueWest.Core.Tests; - -namespace BlueWest.DataAgent -{ - public static class AgentHttp - { - private static readonly HttpClient Client = new HttpClient(); - - public static async Task PostAsync(string uri, object data) - { - var values = data.ToDictionary(); - - ByteArrayContent content = new FormUrlEncodedContent((IEnumerable>) values); - - var response = await Client.PostAsync(uri, content); - - var responseString = await response.Content.ReadAsStringAsync(); - - return responseString; - - } - - - public static async Task GetAsync(string uri) - { - var responseString = await Client.GetStringAsync(uri); - return responseString; - } - } -} \ No newline at end of file diff --git a/BlueWest.GrpcClient/BlueWest.GrpcClient.csproj b/BlueWest.GrpcClient/BlueWest.GrpcClient.csproj deleted file mode 100644 index 9d338af..0000000 --- a/BlueWest.GrpcClient/BlueWest.GrpcClient.csproj +++ /dev/null @@ -1,24 +0,0 @@ - - - - Exe - net6.0 - enable - - - - - - - - - Both - Public - True - True - obj\Release\net6.0-windows\ - MSBuild:Compile - - - - diff --git a/BlueWest.GrpcClient/Program.cs b/BlueWest.GrpcClient/Program.cs deleted file mode 100644 index ba0d080..0000000 --- a/BlueWest.GrpcClient/Program.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; -using Grpc.Net.Client; - -namespace BlueWest.GrpcClient -{ - class Program - { - static void Main() - { - var channel = GrpcChannel.ForAddress("https://localhost:5001"); - //var client = new Greet.GreeterClient(channel); - Console.WriteLine("Hello, World!"); - } - - } -} diff --git a/BlueWest.GrpcClient/Protos/greet.proto b/BlueWest.GrpcClient/Protos/greet.proto deleted file mode 100644 index b70b6d9..0000000 --- a/BlueWest.GrpcClient/Protos/greet.proto +++ /dev/null @@ -1,13 +0,0 @@ -syntax = "proto3"; - -service Greeter { -rpc SayHello (HelloRequest) returns (HelloReply); -} - -message HelloRequest { -string name = 1; -} - -message HelloReply { -string message = 1; -} \ No newline at end of file