Remove unused modules
This commit is contained in:
parent
4a405696da
commit
ea22124187
|
@ -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<CommandRequestEvent>
|
||||
{
|
||||
protected override void Start()
|
||||
{
|
||||
base.Start();
|
||||
Console.WriteLine("Binance Started");
|
||||
}
|
||||
|
||||
public void TryGetExampleData()
|
||||
{
|
||||
var response = AgentHttp.GetAsync("/uri");
|
||||
}
|
||||
|
||||
public void OnEvent(CommandRequestEvent eventType)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<ImplicitUsings>disable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Binance" />
|
||||
<Folder Include="FTXPro" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\BlueWest\BlueWest.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
|
@ -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<string> PostAsync<T>(string uri, object data)
|
||||
{
|
||||
var values = data.ToDictionary();
|
||||
|
||||
ByteArrayContent content = new FormUrlEncodedContent((IEnumerable<KeyValuePair<string?, string?>>) values);
|
||||
|
||||
var response = await Client.PostAsync(uri, content);
|
||||
|
||||
var responseString = await response.Content.ReadAsStringAsync();
|
||||
|
||||
return responseString;
|
||||
|
||||
}
|
||||
|
||||
|
||||
public static async Task<string> GetAsync(string uri)
|
||||
{
|
||||
var responseString = await Client.GetStringAsync(uri);
|
||||
return responseString;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,24 +0,0 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Grpc.Net.Client" Version="2.41.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Protobuf Include="Protos\greet.proto">
|
||||
<GrpcServices>Both</GrpcServices>
|
||||
<Access>Public</Access>
|
||||
<ProtoCompile>True</ProtoCompile>
|
||||
<CompileOutputs>True</CompileOutputs>
|
||||
<OutputDir>obj\Release\net6.0-windows\</OutputDir>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Protobuf>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
|
@ -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!");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
syntax = "proto3";
|
||||
|
||||
service Greeter {
|
||||
rpc SayHello (HelloRequest) returns (HelloReply);
|
||||
}
|
||||
|
||||
message HelloRequest {
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
message HelloReply {
|
||||
string message = 1;
|
||||
}
|
Loading…
Reference in New Issue