Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

1 WCF Service with 2 Method, I added 2 new Method more. How to Restrict 2 New method that for old customer. even old custmer should not be see.

user-image
Question ajoutée par Naresh kumar , Sr. Software Engineer , vayamtech
Date de publication: 2014/01/25
Gohar Sharf
par Gohar Sharf , Hadoop | Spark | Power BI | Teradata | Kanban | Certified Professional , Teradata

Just create Two different end poitns with two different service contracts.

Naresh kumar
par Naresh kumar , Sr. Software Engineer , vayamtech

Hi Asad Palekar,

 

I got the idea, first interface need to inherit and need to create2 end point in web config.

 

Regards,

Naresh kumar

 

Asad Palekar
par Asad Palekar , Senior Software Engineer , Musafir.com

Hi,

 

What you can do is split those2 methods in different interfaces. For eg: first2 methods can be a part of Interface1 Contract and other2 can be part of Interface2 Contract. Then you can create2 end points in web.config file for those2 difference users. 

 

Hope this helps. Let me know if there are concerns. 

 

Regards,

Asad Palekar

More Questions Like This