コード例 #1
0
 /// <summary>
 ///     Ctor.
 /// </summary>
 /// <param name="name">event type name</param>
 /// <param name="moduleName">
 ///     module name that originated the event type or null if not provided or if the event type is
 ///     preconfigured
 /// </param>
 /// <param name="typeClass">information on the originator or use of the event type</param>
 /// <param name="applicationType">provides the type of the underlying</param>
 /// <param name="accessModifier">the access modifier defining how the event type is visible to other modules</param>
 /// <param name="busModifier">
 ///     the bus modifier defining how the event type is visible to applications calling send-event
 ///     methods
 /// </param>
 /// <param name="isPropertyAgnostic">
 ///     whether the type is property-agnostic (false for most typed, true for a type that
 ///     allows any property name)
 /// </param>
 /// <param name="eventTypeIdPair">the type id pair</param>
 public EventTypeMetadata(
     string name,
     string moduleName,
     EventTypeTypeClass typeClass,
     EventTypeApplicationType applicationType,
     NameAccessModifier accessModifier,
     EventTypeBusModifier busModifier,
     bool isPropertyAgnostic,
     EventTypeIdPair eventTypeIdPair)
 {
     Name = name;
     ModuleName = moduleName;
     TypeClass = typeClass;
     ApplicationType = applicationType;
     AccessModifier = accessModifier;
     BusModifier = busModifier;
     IsPropertyAgnostic = isPropertyAgnostic;
     EventTypeIdPair = eventTypeIdPair;
 }
コード例 #2
0
ファイル: EventTypeTypeClass.cs プロジェクト: lanicon/nesper
 /// <summary>
 /// Returns true if the event type type-class represents a table.
 /// </summary>
 /// <param name="value"></param>
 /// <returns></returns>
 public static bool IsTable(this EventTypeTypeClass value)
 {
     return value == EventTypeTypeClass.TABLE_PUBLIC ||
            value == EventTypeTypeClass.TABLE_INTERNAL;
 }