示例#1
0
 public static FluentConnectionWrapper OnDisconnect(this FluentConnectionWrapper m, DisconnectCallback callback)
 {
     m.AttatchOnDisconnect(callback); return(m);
 }
示例#2
0
 public static FluentConnectionWrapper On(this FluentConnectionWrapper m, string type, Action <FluentConnectionWrapper, Message> callback)
 {
     m.AttatchOnMessage(type, callback); return(m);
 }
示例#3
0
 public static FluentConnectionWrapper AfterSend(this FluentConnectionWrapper m, AfterSend callback)
 {
     m.AttatchAfterSend(callback); return(m);
 }
示例#4
0
 public static FluentConnectionWrapper BeforeSend(this FluentConnectionWrapper m, BeforeSend callback)
 {
     m.AttatchBeforeSend(callback); return(m);
 }
示例#5
0
 public static FluentConnectionWrapper Reconnect(this FluentConnectionWrapper m, ConnectionArguments cargs)
 {
     m.ResetConnection(cargs); return(m);
 }
示例#6
0
 public static FluentConnectionWrapper Disconnect(this FluentConnectionWrapper m)
 {
     m.EndConnection(); return(m);
 }
示例#7
0
 public static FluentConnectionWrapper Send(this FluentConnectionWrapper m, Message msg)
 {
     m.SendMessage(msg); return(m);
 }
示例#8
0
 public static FluentConnectionWrapper Send(this FluentConnectionWrapper m, string type, params object[] args)
 {
     m.SendMessage(type, args); return(m);
 }