summaryrefslogtreecommitdiff
path: root/CSharp
diff options
context:
space:
mode:
authorfcolin2007-02-01 09:42:25 +0000
committerfcolin2007-02-01 09:42:25 +0000
commitb6757b3a5dbd70eed5592acb2281233304585fe4 (patch)
treebcc79955b5f0769300c908fb383259d0dafff264 /CSharp
parent16cde27261c3241b5f6227c134ef999f206f5f44 (diff)
downloadivy-csharp-b6757b3a5dbd70eed5592acb2281233304585fe4.zip
ivy-csharp-b6757b3a5dbd70eed5592acb2281233304585fe4.tar.gz
ivy-csharp-b6757b3a5dbd70eed5592acb2281233304585fe4.tar.bz2
ivy-csharp-b6757b3a5dbd70eed5592acb2281233304585fe4.tar.xz
Utilisateur : Fcolin Date : 1/12/03 Heure : 14:22 Archivé dans $/EScribe/Ivy Commentaire: (vss 14)
Diffstat (limited to 'CSharp')
-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>