creating win service

C:\Documents and Settings\Administrator> sc create asperacentral binPath= "C:\Program Files\Aspera\Enterprise Server\bin\Debug\asperacentral.exe" DisplayName= "Aspera Central" start= auto

c# stop/terminate/taskkill windows service

in cmd

sc queryex servicename

From the results of this query, jot down the PID.

taskkill /f /pid [PID]

Memcached c# simple example

github link Install using nuget
PM> Install-Package EnyimMemcached
            MemcachedClientConfiguration config = new MemcachedClientConfiguration();
            IPEndPoint remoteEP = new IPEndPoint(IPAddress.Parse(""), 11211);
            config.Protocol = MemcachedProtocol.Text;

            //using - not recommended here, check out documentation
            using (var mc = new MemcachedClient(config))
                var zz = mc.Get("test_" + x);

                mc.Store(StoreMode.Set, "Test", "Hello World");

Beanstalk simple example c# download and compile
using Droog.Beanstalk.Client;
using (var client = new BeanstalkClient("", 11300))
    var put = client.PutString("foo");
    var reserve = client.ReserveString();