mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 23:25:45 +03:00
23 lines
572 B
C#
23 lines
572 B
C#
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();
|
|
}
|
|
}
|
|
}
|