Example #1
0
 public SingleAttributeProjection(string attributePath)
 {
     ValidationUtil.HasText(attributePath, "attributePath must not be null or empty");
     if (attributePath.Contains("[any]"))
     {
         throw new ArgumentException("attributePath must not contain [any] operators");
     }
     this.attributePath = attributePath;
 }
 /// <summary>Sets the class name of the IEventListener.</summary>
 /// <remarks>
 ///     Sets the class name of the IEventListener.
 ///     If a implementation was set, it will be removed.
 /// </remarks>
 /// <param name="className">the name of the class of the IEventListener.</param>
 /// <returns>the updated ListenerConfig.</returns>
 /// <exception cref="System.ArgumentException">if className is null or an empty String.</exception>
 /// <seealso cref="SetImplementation(IEventListener)" />
 /// <seealso cref="GetClassName()">GetClassName()</seealso>
 public ListenerConfig SetClassName(string className)
 {
     this.className = ValidationUtil.HasText(className, "className");
     implementation = null;
     return(this);
 }