WCF Operation contract availability

Posted by nettguy on Stack Overflow See other posts from Stack Overflow or by nettguy
Published on 2010-04-02T20:23:02Z Indexed on 2010/04/02 20:33 UTC
Read the original article Hit count: 255

Filed under:
|

This question was asked at interview. Say I have a contract.

[ServiceContract]
public interface IMyService
{
  [OperationContract]
  void methodForClientA();

   [OperationContract]
   void  AnothermethodForClientA();

   [OperationContract]
   void methodForClientB();

  [OperationContract]
  void  AnothermethodForClientB();
}

When a clientA access the contract it should only see the operation contracts

void methodForClientA(),void  AnothermethodForClientA().

Is it possible in WCF ?

© Stack Overflow or respective owner

Related posts about wcf

Related posts about interview-questions