wcf msmq
service: namespace WcfService1 { // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "MsmqService" in code, svc and config file together. // NOTE: In order to launch WCF Test Client for testing this service, please select MsmqService.svc or MsmqService.svc.cs at the Solution Explorer and start debugging. public class MsmqService : IMsmqService { public void SendMsg( string message) { string file = @" C:\Users\H261285\source\repos\WcfService1\WcfService1.Client\bin\Debug\test.txt " ; lock (file) { File.AppendAllText(file, message, Encoding.Default); } } } }