c# - Getting validationToken as null after sibscribing to outlook push notification -


i using exchangeservice.subscribetopushnotifications subscribe outlook latest change in calendar. callback url gets called after subscribing validationtoken value null. can 1 me?

this url:

public class notifycontroller : apicontroller {

    [route("")]     public async task<httpresponsemessage> post(string validationtoken =       null)     {          // if validation token present, need respond within 5          seconds.         if (validationtoken != null)         {             var response = request.createresponse(httpstatuscode.ok);             response.content = new stringcontent(validationtoken);              return response;          }         return new httpresponsemessage(httpstatuscode.ok);     } } 


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -