Auditor, WCF & serialization

Posts   
 
    
mario2
User
Posts: 2
Joined: 16-Feb-2012
# Posted on: 16-Feb-2012 09:52:06   

I'm working on WinForms app that uses WCF service and I have problems implementing auditing using DI.

I have configured WCF for DI and also configured client (WinForms) app in the same way. Binary serialization is used.

New instance of object in created on client. Before object is serialized on client it contains audit information in AuditorForUse. However, when it's deserialized on server it only contains empty Auditor instance.

Do you know what's the problem?

Thanks in advance.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 16-Feb-2012 10:35:15   
mario2
User
Posts: 2
Joined: 16-Feb-2012
# Posted on: 16-Feb-2012 12:05:00   

I have seen that post but wasn't helpful to me.

Why Auditor is not binary serialized as any other property?

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 16-Feb-2012 12:29:34   

WCF is about XML serialization not binary serialization, right? The referenced post explained how you can serialize and auditor object along its container entity.