.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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -