.net - Problems with SaveAsync task in DynamoDB for C# -
i'm trying save administrator class object dynamodb using context.saveasync method:
// save admin dynamodb. context.saveasync(admin,(result)=>{ if (result.exception == null) { console.writeline("admin saved"); } });
but keeps bothering me following error:
cannot convert `lambda expression' non-delegate type `system.threading.cancellationtoken'
how handle issue ?. i'm using xamarin studio os x
according documentation, dynamodbcontext.saveasync
takes type t
, , cancellationtoken
. not take form of delegate type, @ all.
what want is:
public async task saveasync<t>(t entity, cancellationtoken ct) { await context.saveasync<t>(entity, ct); console.writeline("entity saved"); }
Comments
Post a Comment