public void SendMethod()
        {
            data mp = new data();

            BinaryFormatter bformatter = new BinaryFormatter();

            Stream stream = new MemoryStream();

            Console.WriteLine("Writing Employee Information");
            bformatter.Serialize(stream, mp);

            stream.Seek(0, SeekOrigin.Begin);

            var bytes = new byte[stream.Length];
            stream.Read(bytes, 0, bytes.Length);


            TransData td = new TransData
            {
                //Type = mp.GetType(),
                SerializeData = bytes
            };


            foreach (var b in bytes)
            {
                MsgQueueProvider<TransData>.Provider.Send(td);
            }


        }
        public void Send()
        {
            data mp = new data();

            BinaryFormatter bformatter = new BinaryFormatter();

            Stream stream = new MemoryStream();

            Console.WriteLine("Writing Employee Information");
            bformatter.Serialize(stream, mp);

            stream.Seek(0, SeekOrigin.Begin);

            var bytes = new byte[stream.Length];
            stream.Read(bytes, 0, bytes.Length);

            var str = BitConverter.ToString(bytes);

            var strb = Encoding.UTF8.GetBytes(str.Replace("-", ""));


            var len = strb.Length;

            var stream2 = new MemoryStream(bytes);
            stream2.Seek(0, SeekOrigin.Begin);

            //stream = new MemoryStream(bytes);

            //stream.Seek(0, SeekOrigin.Begin);
            BinaryFormatter bformatte2 = new BinaryFormatter();
            var objects = bformatte2.Deserialize(stream2);


        }