Fix Restsharp / Move to Postgresql
This commit is contained in:
14
LaDOSE.Src/LinuxTest/LinuxTest.csproj
Normal file
14
LaDOSE.Src/LinuxTest/LinuxTest.csproj
Normal file
@@ -0,0 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\LaDOSE.REST\LaDOSE.REST.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
19
LaDOSE.Src/LinuxTest/Program.cs
Normal file
19
LaDOSE.Src/LinuxTest/Program.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using LaDOSE.REST;
|
||||
internal class Program
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Rest Test");
|
||||
var p = new LaDOSE.REST.RestService();
|
||||
Console.WriteLine("[+] Connect");
|
||||
|
||||
p.Connect(new Uri("http://localhost:5000/"),"dev","dev");
|
||||
Console.WriteLine("[+] Test");
|
||||
var games = p.GetGames();
|
||||
foreach (var ga in games)
|
||||
{
|
||||
Console.WriteLine(ga.Name);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user