I have a shared assembly between the client and wcf service. Is there a way to detect that the shared assembly is running on the client side or on the wcf side?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What kind of functionality does the shared assembly have? Just data/service contracts? Or does it have something else (like utility classes and so forth)?
Basically, there’s really no easy way to tell without, certainly not for contracts, and even utility classes would be hard pressed about it (depending on how you use them, checking for the presence of an OperationContext might work).
I’m curious, though… what exactly do you hope to accomplish here? Maybe we can offer suggestions of better ways to get there.