.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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -