1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-20 09:23:50 +00:00

playground app and json settings for litedb

This commit is contained in:
Kyle Spearrin
2019-03-28 13:57:45 -04:00
parent 781f838ce7
commit 86f1874379
4 changed files with 82 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<AssemblyName>BitwardenPlayground</AssemblyName>
<RootNamespace>Bit.Playground</RootNamespace>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Core\Core.csproj" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,23 @@
using Bit.Core.Services;
using System;
using System.Threading.Tasks;
namespace Bit.Playground
{
public class Program
{
public static void Main(string[] args)
{
MainAsync(args).Wait();
Console.ReadLine();
}
public static async Task MainAsync(string[] args)
{
var db = new LiteDbStorageService("test.db");
await db.SaveAsync("testkey", new { val = 1 });
Console.WriteLine(await db.GetAsync<object>("testkey"));
Console.ReadLine();
}
}
}