about
12/10/2022
Cs_WCF_Demos Repo
Cs_WCF_Demos code

Cs_WCF_Demos  Repository

Code illustrates building several types of WCF channels

Quick Status Code functions correctly no known defects Demonstration code yes Documentation yes - needs more Test cases no Static library no Build requires C# 7.0 Note Requires Administrator mode
for execution
Planned design changes Add more demonstration code

1.0 Contents

This repository provides a set of demostrations for building Windows Communication Foundation channels. Note that the Visual Studio wizard for WCF is limited to a very simple channel hosted in IIS. These demos show you how to build self-hosted channels. You will find it much easier to start with one of these examples instead of using the Visual Studio wizard. Note that you must run Visual Studio as Administrator for these to work. That is due to the Microsoft design decision that only System Administrators should be able to install services, including WCF services.
  • HandCraftedBasicHttpServices
    Examples of Declarative and Programmatic definition of WCF channel properties. These are very simple services, designed to help you get started by modifying and adding to these demos.
  • HandCraftedWsHttpServices
    Same as above, except uses the WsHttp protocol, e.g., can be secured, supports session, etc.
  • SelfHosted_StringsService
    Channel supporting the transmission of strings by value and reference.
  • FileService-SelfHost
    Self-hosted service for transmitting files by blocks.
  • FileStreaming
    Self-hosted service for transmitting files via streams.
  • Peer-Comm-SelfHosted
    Chat like facility for communicating messages between two WPF clients.
  • WCF_MessagePassingComm
    Demonstrates a service that supports several different protocols, e.g., BasicHttp, WsHttp, NetTCP.

2.0 Build

All code was built with Visual Studio, Community Edition - 2019, and tested on Windows 10.

3.0 Resources

  Next Prev Pages Sections About Keys