summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CSharp/Ivy/Ivy/Ivy.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/CSharp/Ivy/Ivy/Ivy.cs b/CSharp/Ivy/Ivy/Ivy.cs
index 18f94e7..4026b1b 100644
--- a/CSharp/Ivy/Ivy/Ivy.cs
+++ b/CSharp/Ivy/Ivy/Ivy.cs
@@ -13,6 +13,7 @@ namespace IvyBus
using System.Threading;
using System.Configuration;
using System.Windows.Forms;
+ using System.Globalization;
/// <summary> The Main bus Class
/// </summary>
@@ -329,6 +330,24 @@ namespace IvyBus
{
return sendMsg( string.Format( format, args ) );
}
+ /// <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(CultureInfo culture, string format, params object[] args )
+ {
+ return sendMsg( string.Format( culture, format, args ) );
+ }
/// <summary> Subscribes to a regular expression.
/// </summary>