Question

I'm using Notification Hubs with the Windows Azure Service Bus .NET SDK version 2.2.4. I'm creating a templated MPNS registration like this:

var reg = await _hub.CreateMpnsTemplateRegistrationAsync(deviceToken, MPNS_TILE_TEMPLATE);
reg.TemplateName = "tile";
await _hub.UpdateRegistrationAsync(reg);

var theReg = await _hub.GetRegistrationAsync<MpnsTemplateRegistrationDescription>(reg.RegistrationId);
var tn = theReg.TemplateName; // this is null

However, TemplateName is always null.

Also, it appears that the TemplateName property is, itself, undocumented in the MSDN reference docs, except for on the "Registration Management" overview page: http://msdn.microsoft.com/en-us/library/windowsazure/dn530747.aspx

Any ideas? thanks Kris

Was it helpful?

Solution

This is a bug in .NET SDK. A bugfix has been release in version 2.2.6.

http://www.nuget.org/packages/WindowsAzure.ServiceBus/2.2.6

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top