ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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
تم إضافة السؤال من قبل Naresh kumar , Sr. Software Engineer , vayamtech
تاريخ النشر: 2014/01/25
Gohar Sharf
من قبل Gohar Sharf , Hadoop | Spark | Power BI | Teradata | Kanban | Certified Professional , Teradata

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

Naresh kumar
من قبل 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
من قبل 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

المزيد من الأسئلة المماثلة