none
Hide or show service operation wcf RRS feed

  • Question

  • Hi everyone,

    We have a requirement where we have four methods from two interfaces

    public class ServiceOne : IServiceClientOne, IServiceClientTwo
        {

            public string MethodOne(int value)
            {
                throw new NotImplementedException();
            }

            public string MethodTwo(int value)
            {
                throw new NotImplementedException();
            }

            public string MethodThree(int value)
            {
                throw new NotImplementedException();
            }

            public string MethodFour(int value)
            {
                throw new NotImplementedException();
            }
        }

    Is there are way that we can hide/show methods specific to client. That is the same SVC is given to two different clients. But Client1 should access onely MethodOne and MethodTwo, and Client2 shoul d only able to access MethodThree and MethodFour.

    Thanks

    coolshiv007

    Thursday, January 31, 2013 1:34 PM

Answers