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
Post a Comment