WCF

The following defines the chat service interface, as you can see the attribute for Service Contract. There is also an Interface defined for the callback.  This will be implemented on the client side, so that these methods are called from the Server(Service) and run on the client side. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ServiceModel; using System.Threading; using ExampleService.ThreadArguments; namespace ExampleService {     /// <summary>     /// Inteface...

So this past weekend I spoke at Atlanta Code Camp this past Saturday on a WCF chat client.  You can find the code samples here. I thought I would expound on it here. Start with the techniques you need to use, For our chat client, we are using TCP/IP for communications because we are on a network, and want 2 way communication.  TCP is great for this purpose, and there is a built in type of communications binding in WCF called netTCPBinding, which takes care of serialization of our types natively, since both the Server and Client...

So the code is about done, with the service running, allowing users who are in the SharePoint site to authenticate, and see other site users in their contact lists.  Conversations can be created, and sent across the wire, and other clients receive them! Logging is enabled and saves entries to a list, and that list is searchable, so you can find items from your previous conversations.  A couple bugs to fix on locking issues, but pretty much home free. Now to start going over how to present the code, WCF first, SharePoint, WPF?  I am thinking WCF, the basics,...

So I am working on a WCF application to help administer SharePoint farms, and well... It is REALLY cool. So far, I have a fat client in WPF that sends messages to a Central point (Central Admin server) and it passes these tasks/messages around the farm for you. The basics, rapid prototyping, we have a bunch of services in place, and we wanted to make this easy to setup. So, we went on and created setup projects to install the services, reading port, service username etc. from the setup project, but then wait, what if you want...