1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-09 09:40:02 +01:00
bitwarden-mobile/test/Playground/Program.cs
2022-04-26 17:21:17 +02:00

24 lines
572 B
C#

using System;
using System.Threading.Tasks;
using Bit.Core.Services;
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();
}
}
}