Can we see the patch.
On Sun, May 17, 2009 at 11:09 PM, Bridge <[email protected]> wrote:
>
> Hi guys,
>
> what do you think of this addition to DynamicProxy project?
>
> There is already a AttributesToAvoidReplicating class that holds
> statically which attributes not should be copied to the proxy, I added
> a AttributePropertiesToAvoidReplicating class which does the same but
> on property level and changed the
> CustomAttributeUtil.GetPropertyValues method to this:
>
> if (pi.CanRead && pi.CanWrite && !
> AttributePropertiesToAvoidReplicating.Contains(attribute.GetType(),
> pi.Name))
> {
> selectedProps.Add(pi);
> }
>
> I needed this to achieve:
>
>
> AttributePropertiesToAvoidReplicating.Add<ServiceBehaviorAttribute>
> ("TransactionTimeout");
>
> AttributePropertiesToAvoidReplicating.Add<ServiceBehaviorAttribute>
> ("TransactionIsolationLevel");
>
> AttributePropertiesToAvoidReplicating.Add<ServiceBehaviorAttribute>
> ("ReleaseServiceInstanceOnTransactionComplete");
>
> AttributePropertiesToAvoidReplicating.Add<ServiceBehaviorAttribute>
> ("TransactionAutoCompleteOnSessionClose");
>
> because otherwise the non-specified properties are copied and are
> throwing ArgumentNull exceptions...
>
> shall I commit this as a change?
>
> greetings,
> Tim
> >
>
--
Jono
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Development List" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/castle-project-devel?hl=en
-~----------~----~----~----~------~----~------~--~---