UserPermissionCache.Items is no longer a dictionary (string, IAzManItem)

Topics: NetSqlAzMan Core
Dec 20, 2010 at 9:32 PM
Edited Dec 22, 2010 at 7:18 PM

Hi, we have a problem upgrading our NetSqlAzMan from 2.4.4.0 to the current version. The problem is from UserPermissionCache.Items.

In 2.4.4.0, NetSqlAzMan.Cache.UserPermissionCache.Items is of this type:

System.Collections.Generic.Dictionary(of string, NetSqlAzMan.Interfaces.IAzManItem)

However, one month later, in 2.4.5.0 (and up until current version), this property has been changed to be of this type:

String()

This change is not mentioned in any release note/build history.

Please let me know what we should do to upgrade away from 2.4.4.0.

Thanks,

Mike

Dec 21, 2010 at 7:16 AM

Hello,

the change was made when I have solved the serialization problem of the UserPermissionCache class (Dictionary objects are not serializable).

However, to solve your problem you have to consider the value of items and ignore the Key.

Regards,

Andrea.

__________________________________
Andrea Ferendeles
NetSqlAzMan Project Coordinator
E-mail aferende@hotmail.com Web http://netsqlazman.codeplex.com

Dec 22, 2010 at 7:18 PM

Thanks for your reply.

Now with the value(name) of the item, how can I know what type of item it is, i.e. is it a Role, or a Task?

Is it possible to get the AzManItem object for the item by name?

Thanks,

Mike