public void WithoutAffinitySynchronizer()
 {
     Assert.IsNull(SynchronizationContext.Current);
     using (ServiceHost<MyService> host = new ServiceHost<MyService>())
     {
         Binding binding = new NetNamedPipeBinding();
         string address = "net.pipe://localhost/" + Guid.NewGuid().ToString();
         host.AddServiceEndpoint<IMyContract>(binding, address);
         host.Open();
         IMyContract channel = host.CreateChannel<IMyContract>(binding, address);
         Assert.IsNull(channel.GetThreadName());
         InProcFactory.CloseChannel<IMyContract>(channel);
     }
 }