暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Message.cs 756B

1234567891011121314151617181920212223
  1. /*---------------------------------------------------------------------------------------------
  2. * Copyright (c) Microsoft Corporation. All rights reserved.
  3. * Licensed under the MIT License. See License.txt in the project root for license information.
  4. *--------------------------------------------------------------------------------------------*/
  5. using System.Globalization;
  6. using System.Net;
  7. namespace Microsoft.Unity.VisualStudio.Editor.Messaging
  8. {
  9. internal class Message
  10. {
  11. public MessageType Type { get; set; }
  12. public string Value { get; set; }
  13. public IPEndPoint Origin { get; set; }
  14. public override string ToString()
  15. {
  16. return string.Format(CultureInfo.InvariantCulture, "<Message type:{0} value:{1}>", Type, Value);
  17. }
  18. }
  19. }