G
Guest
I defined a WCF callback contract:
<ServiceContract()> _
Interface IEBAPEvents
'this interface defines the events to be triggered in the clients
'the EBAP pattern defines two events: a progress event and a completion
event
<OperationContract(IsOneWay:=True)> _
Sub OnProgressChanged(ByVal e As FindFilesProgressChangedEventArgs)
<OperationContract(IsOneWay:=True)> _
Sub OnFindFilesCompleted(ByVal e As FindFilesCompletedEventArgs)
End Interface
and the event args:
<DataContract()> _
Public Class FindFilesProgressChangedEventArgs
Inherits ProgressChangedEventArgs
...
<DataContract()> _
Public Class FindFilesCompletedEventArgs
Inherits AsyncCompletedEventArgs
When starting the WCF host an error message appears:
Error: Type 'System.ComponentModel.ProgressChangedEventArgs' cannot be seria
d. Consider marking it with the DataContractAttribute attribute, and marking
of its members you want serialized with the DataMemberAttribute attribute.
How do I add an attribute to the .NET class ProgressChangedEventArgs ?
thank you very much
herbert
<ServiceContract()> _
Interface IEBAPEvents
'this interface defines the events to be triggered in the clients
'the EBAP pattern defines two events: a progress event and a completion
event
<OperationContract(IsOneWay:=True)> _
Sub OnProgressChanged(ByVal e As FindFilesProgressChangedEventArgs)
<OperationContract(IsOneWay:=True)> _
Sub OnFindFilesCompleted(ByVal e As FindFilesCompletedEventArgs)
End Interface
and the event args:
<DataContract()> _
Public Class FindFilesProgressChangedEventArgs
Inherits ProgressChangedEventArgs
...
<DataContract()> _
Public Class FindFilesCompletedEventArgs
Inherits AsyncCompletedEventArgs
When starting the WCF host an error message appears:
Error: Type 'System.ComponentModel.ProgressChangedEventArgs' cannot be seria
d. Consider marking it with the DataContractAttribute attribute, and marking
of its members you want serialized with the DataMemberAttribute attribute.
How do I add an attribute to the .NET class ProgressChangedEventArgs ?
thank you very much
herbert