mirror of
https://github.com/bitwarden/mobile
synced 2026-03-01 19:01:31 +00:00
playground app and json settings for litedb
This commit is contained in:
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