diff options
author | fcolin | 2007-02-01 09:58:17 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 09:58:17 +0000 |
commit | f2cc6529ae1b6043865442af2330dac08a3f7f01 (patch) | |
tree | 177b6a50b6a6ce21fd34a9413e6aab47042a6feb /CSharp/Ivy/IvyPPC/IvyClient.cs | |
parent | 733fc71754b8873d3b34aa4c18937603f3fcc3e4 (diff) | |
download | ivy-csharp-f2cc6529ae1b6043865442af2330dac08a3f7f01.zip ivy-csharp-f2cc6529ae1b6043865442af2330dac08a3f7f01.tar.gz ivy-csharp-f2cc6529ae1b6043865442af2330dac08a3f7f01.tar.bz2 ivy-csharp-f2cc6529ae1b6043865442af2330dac08a3f7f01.tar.xz |
Utilisateur : Fcolin Date : 23/12/05 Heure : 16:22 Archivé dans $/CSharp/Ivy Commentaire: (vss 28)
Diffstat (limited to 'CSharp/Ivy/IvyPPC/IvyClient.cs')
-rw-r--r-- | CSharp/Ivy/IvyPPC/IvyClient.cs | 34 |
1 files changed, 3 insertions, 31 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyClient.cs b/CSharp/Ivy/IvyPPC/IvyClient.cs index 3982543..5a4a082 100644 --- a/CSharp/Ivy/IvyPPC/IvyClient.cs +++ b/CSharp/Ivy/IvyPPC/IvyClient.cs @@ -125,10 +125,7 @@ namespace IvyBus {
foreach (Ivy.ApplicationBinding bind in bus.bindings.Values )
{
- if ( bind.type == Ivy.BindingType.BindSimple )
- stream.TokenAddBinding(bind.key,bind.regexp);
- else
- stream.TokenAddRegexp(bind.key, bind.regexp);
+ stream.TokenAddBinding(bind);
}
}
stream.TokenEndRegexp();
@@ -390,36 +387,11 @@ namespace IvyBus throw new IvyException(ioe.Message);
}
}
- public void TokenAddRegexp(ushort id, string regexp)
- {
- if (bus.CheckRegexp(regexp))
- {
- try
- {
- IvyBindingRegexp bind = new IvyBindingRegexp(id,regexp);
- lock( bindings )
- {
- bindings.Add( id, bind);
- }
- bus.FireClientAddBinding( this, bind.expression );
- }
- catch (ArgumentException e)
- {
- throw new IvyException("regexp error " + e.Message);
- }
- }
- else
- {
- traceDebug("regexp Warning exp='" + regexp + "' can't match removing from " + appName);
- }
- }
-
- public void TokenAddBinding(ushort id, string expression)
+
+ internal void TokenAddBinding(IvyBindingBase bind)
{
try
{
- IvyBindingSimple bind = new IvyBindingSimple(id, expression);
-
lock( bindings )
{
bindings.Add( id, bind);
|