diff options
author | fcolin | 2007-02-01 09:42:13 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 09:42:13 +0000 |
commit | 2a7710f9cc074fa58542df6115eea35f3d755d6b (patch) | |
tree | 4414f9cc91654bf89f3320e033b67de4475d6ea6 | |
parent | 25a193dae86a265fcc4c70ec7a00cf1348161c9a (diff) | |
download | ivy-csharp-2a7710f9cc074fa58542df6115eea35f3d755d6b.zip ivy-csharp-2a7710f9cc074fa58542df6115eea35f3d755d6b.tar.gz ivy-csharp-2a7710f9cc074fa58542df6115eea35f3d755d6b.tar.bz2 ivy-csharp-2a7710f9cc074fa58542df6115eea35f3d755d6b.tar.xz |
Utilisateur : Fcolin Date : 31/10/03 Heure : 15:52 Archivé dans $/EScribe/Ivy Commentaire: (vss 8)
-rw-r--r-- | CSharp/Ivy/Ivy/Ivy.cs | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/CSharp/Ivy/Ivy/Ivy.cs b/CSharp/Ivy/Ivy/Ivy.cs index c97b545..5818949 100644 --- a/CSharp/Ivy/Ivy/Ivy.cs +++ b/CSharp/Ivy/Ivy/Ivy.cs @@ -295,6 +295,24 @@ namespace IvyBus }
return count;
}
+ /// <summary> Send a formated message to someone on the bus
+ /// </summary>
+ /// <remarks>
+ /// Performs a pattern matching according to everyone's regexps, and sends
+ /// the results to the relevant ivy agents.
+ /// There is one thread for each client connected, we could also
+ /// create another thread each time we send a message.
+ /// </remarks>
+ /// <param name='format'>A string message format to build the message
+ /// <param name='args'>args used in message format
+ /// </param>
+ /// <returns>the number of messages actually sent
+ ///
+ /// </returns>
+ public int sendMsg(string format, params object[] args )
+ {
+ return sendMsg( string.Format( format, args ) );
+ }
/// <summary> Subscribes to a regular expression.
/// </summary>
@@ -470,7 +488,7 @@ namespace IvyBus throw new IvyException("(callCallback) Not regexp matching id " + key);
}
if ( syncControl != null )
- syncControl.Invoke( callback, new object[]{client,tab});
+ syncControl.Invoke( callback, new object[]{client,tab.Clone()});
else callback(client, tab);
}
|