제네릭 WCF 호스트와 클라이언트

RTFM/WCF 2010. 5. 3. 13:48

http://www.codeproject.com/KB/WCF/GenericWcfServiceHostAndC.aspx?msg=3458979#xx3458979xx

GenericWcfServiceHostAndClient

WCF 서비스를 호스팅하고 사용하기 위한 범용 프레임웍입니다.

비주얼 스튜디오를 사용하는 것 보다 가볍고 편리하게 사용할 수 있습니다.

주요 기능은 다음과 같습니다.

  • Fast net.tcp binding
  • Windows credentials and authentication
  • Encrypted and signed transport (no packet sniffing allowed)
  • Simplified configuration (hide everything I don't want to see)
  • Windows Service host that behaves like a Console app when I'm debugging
  • Dynamic loading of the service (no changes to the host code to add a new service)
  • Generic client so I don't have to write or generate proxy code
  • Client that is truly IDisposable (hide Abort vs Close for me)
  • Long timeout in DEBUG mode so I can really take my time while debugging
  • Inclusion of exception details in DEBUG mode only
  • Base service class with a simple Authorize method to support multiple Windows groups
  • Support for multiple Windows group authorization
  • Identical configuration for server and client
  • Cached resolution of service plugin service and contract types
  • Minimal number of assemblies (projects) in the solution
  • Keep the implementation of the service hidden from the client
  • :