How do I pass values to the contractor on of a wcf service?

Posted by Ian Ringrose on Stack Overflow See other posts from Stack Overflow or by Ian Ringrose
Published on 2010-03-16T13:53:51Z Indexed on 2010/03/16 13:56 UTC
Read the original article Hit count: 216

I wish to pass values into the contractor on the class that implements my service.

However ServiceHost only lets me pass in the name of the type to create, not what arguments to pass to it’s contractor.

I would live to be able to pass in a “factor” that creates my service object.

© Stack Overflow or respective owner

Related posts about wcf

Related posts about dependency-injection