Passing Custom Principal as Parameter?
- From: coconet <coconet@xxxxxxxxxxxxxxxx>
- Date: Mon, 03 Mar 2008 12:56:46 -0500
I have two custom classes that implement IPrincipal and IIdentity. The
Principal class and Identity classes are built somewhere else in the
infrastructure and the Identity is used to build the Principal.
The class that implements IIDentity has this:
[DataMember]
public bool IsAuthenticated
{
get
{
return this.isauth;
}
}
However, when my custom Principal is passed to a WCF remote method
that takes IPrincipal as a parameter, among other errors, I get this:
"
System.Runtime.Serialization.InvalidDataContractException: No set
method for property 'IsAuthenticated' in type '......TrueIdentity'..
"
I can't modify IsAuthenticated with a "set" because then it won't
implement IIdentity correctly.
What is the right way to handle this?
Thanks.
.
- Follow-Ups:
- Re: Passing Custom Principal as Parameter?
- From: coconet
- Re: Passing Custom Principal as Parameter?
- Prev by Date: Re: Problem matching WSDL
- Next by Date: RE: why does my webservice web reference not work in aspx project?
- Previous by thread: Re: Webservice drops multithread application
- Next by thread: Re: Passing Custom Principal as Parameter?
- Index(es):
Relevant Pages
|