コード例 #1
0
 /// <summary>
 ///     Add a pattern guard for plug-in.
 /// </summary>
 /// <param name="namespace">is the namespace the guard should be available under</param>
 /// <param name="name">is the name of the guard</param>
 /// <param name="guardForgeClass">is the guard forge class to use</param>
 public void AddPlugInPatternGuard(
     string @namespace,
     string name,
     string guardForgeClass)
 {
     var entry = new ConfigurationCompilerPlugInPatternObject();
     entry.Namespace = @namespace;
     entry.Name = name;
     entry.ForgeClassName = guardForgeClass;
     entry.PatternObjectType = PatternObjectType.GUARD;
     PlugInPatternObjects.Add(entry);
 }
コード例 #2
0
 /// <summary>
 ///     Add a pattern event observer for plug-in.
 /// </summary>
 /// <param name="namespace">is the namespace the observer should be available under</param>
 /// <param name="name">is the name of the observer</param>
 /// <param name="observerForgeClass">is the observer forge class to use</param>
 public void AddPlugInPatternObserver(
     string @namespace,
     string name,
     string observerForgeClass)
 {
     var entry = new ConfigurationCompilerPlugInPatternObject();
     entry.Namespace = @namespace;
     entry.Name = name;
     entry.ForgeClassName = observerForgeClass;
     entry.PatternObjectType = PatternObjectType.OBSERVER;
     PlugInPatternObjects.Add(entry);
 }