Fix a few
This commit is contained in:
@@ -9,7 +9,7 @@ using System.Runtime.CompilerServices;
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("")]
|
||||
[assembly: AssemblyCopyright("sta")]
|
||||
[assembly: AssemblyCopyright("sta.blockhead")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
@@ -24,4 +24,3 @@ using System.Runtime.CompilerServices;
|
||||
|
||||
//[assembly: AssemblyDelaySign(false)]
|
||||
//[assembly: AssemblyKeyFile("")]
|
||||
|
||||
|
@@ -4,10 +4,6 @@ namespace Example
|
||||
{
|
||||
internal class NotificationMessage
|
||||
{
|
||||
public NotificationMessage ()
|
||||
{
|
||||
}
|
||||
|
||||
public string Body {
|
||||
get; set;
|
||||
}
|
||||
@@ -22,7 +18,7 @@ namespace Example
|
||||
|
||||
public override string ToString ()
|
||||
{
|
||||
return String.Format ("[{0}: {1}]", Summary, Body);
|
||||
return String.Format ("{0}: {1}", Summary, Body);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -26,7 +26,7 @@ namespace Example
|
||||
|
||||
ws.OnMessage += (sender, e) =>
|
||||
nf.Notify (
|
||||
new NotificationMessage () {
|
||||
new NotificationMessage {
|
||||
Summary = "WebSocket Message",
|
||||
Body = e.Data,
|
||||
Icon = "notification-message-im"
|
||||
@@ -34,7 +34,7 @@ namespace Example
|
||||
|
||||
ws.OnError += (sender, e) =>
|
||||
nf.Notify (
|
||||
new NotificationMessage () {
|
||||
new NotificationMessage {
|
||||
Summary = "WebSocket Error",
|
||||
Body = e.Message,
|
||||
Icon = "notification-message-im"
|
||||
@@ -42,7 +42,7 @@ namespace Example
|
||||
|
||||
ws.OnClose += (sender, e) =>
|
||||
nf.Notify (
|
||||
new NotificationMessage () {
|
||||
new NotificationMessage {
|
||||
Summary = String.Format ("WebSocket Close ({0})", e.Code),
|
||||
Body = e.Reason,
|
||||
Icon = "notification-message-im"
|
||||
@@ -51,7 +51,6 @@ namespace Example
|
||||
#if DEBUG
|
||||
ws.Log.Level = LogLevel.Trace;
|
||||
#endif
|
||||
|
||||
// Per-message Compression
|
||||
//ws.Compression = CompressionMethod.Deflate;
|
||||
|
||||
@@ -80,9 +79,8 @@ namespace Example
|
||||
Thread.Sleep (500);
|
||||
Console.Write ("> ");
|
||||
var msg = Console.ReadLine ();
|
||||
if (msg == "exit") {
|
||||
if (msg == "exit")
|
||||
break;
|
||||
}
|
||||
|
||||
ws.Send (msg);
|
||||
}
|
||||
|
Reference in New Issue
Block a user