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:
14
test/Playground/Playground.csproj
Normal file
14
test/Playground/Playground.csproj
Normal 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>
|
||||
23
test/Playground/Program.cs
Normal file
23
test/Playground/Program.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user