PageTypePropertiesProxyGenerationHook does not override both Equals and GetHashCode warning

Sep 15, 2010 at 11:51 AM

Hi,

I wonder if I have configured anything wrong cause on startup I get following message in the Output windows.

Castle.DynamicProxy Warning: 0 : The IProxyGenerationHook type PageTypeBuilder.Activation.PageTypePropertiesProxyGenerationHook does not override both Equals and GetHashCode. If these are not correctly overridden caching will fail to work causing performance problems.

The application works fine but it annoys me (and logging takes valuable time).

 /Simon

Coordinator
Sep 15, 2010 at 12:25 PM
Interesting! Ive never noticed that myself before, but the warning makes sense thinking quickly about it. I'll look into it for the next version.

I wouldn't worry about the performance unless you're building google though :)

/Joel

Skickat från min iPhone

15 sep 2010 kl. 13:51 skrev SimonSwartz <notifications@codeplex.com>:

From: SimonSwartz

Hi,

I wonder if I have configured anything wrong cause on startup I get following message in the Output windows.

Castle.DynamicProxy Warning: 0 : The IProxyGenerationHook type PageTypeBuilder.Activation.PageTypePropertiesProxyGenerationHook does not override both Equals and GetHashCode. If these are not correctly overridden caching will fail to work causing performance problems.

The application works fine but it annoys me (and logging takes valuable time).

/Simon