You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
572 B
23 lines
572 B
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(); |
|
} |
|
} |
|
}
|
|
|