Search Results for

    Show / Hide Table of Contents

    Interface IWatcher

    The system entity for a watcher, which tracks interested parties against entities within the system

    See https://help.lemonedge.com/watchers/ for more information

    Inherited Members
    IBaseEntity.GetLabel(string)
    IBaseEntity.SetLabel(string, string)
    IBaseEntity.SetSilentLabel(string, string)
    IBaseEntity.AccountID
    IBaseEntity.ID
    IBaseEntity.LastUpdated
    IBaseEntity.ModifiedByUserID
    IBaseEntity.CanvasID
    IBaseEntity.AlgorithmStepID
    IBaseEntity.SafeID
    IEquatable<IBaseEntity>.Equals(IBaseEntity)
    INotifyPropertyChanged.PropertyChanged
    INotifyPropertyChanging.PropertyChanging
    ICloneableAsync.Clone(object)
    ICloneableAsync.CopyFromSource(object)
    ICanTrackProperties.HasTrackedPropertyChanged(string)
    ICanTrackProperties.OriginalTrackedPropertyValue(string)
    ICanTrackProperties.OriginalTrackedPropertyValue<T>(string)
    ICanTrackProperties.ClearTrackedOriginalValues()
    ICanTrackProperties.GetAllOriginalTrackedPropertyValues()
    Namespace: LemonEdge.API.Entities.Workflow
    Assembly: LemonEdge.API.dll
    Syntax
    [EntityDefinition(EntityID.Watcher, "dbo.LT_Watchers", "Watcher")]
    [DefaultEntityIcon(ImageType.Eye)]
    [EntityIndex(Name = "Watcher", ColumnNames = new string[] { "EntityID" }, IndexOrder = new IndexOrder[] { IndexOrder.Ascending }, IsClustered = false, IsUnique = false)]
    public interface IWatcher : IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties

    Properties

    EntityID

    [Key] The globally unique id of the entity that this watcher is against

    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, false)]
    [RequiredNoDefaultIDValidation]
    [EntityKeyProperty]
    Guid EntityID { get; set; }
    Property Value
    Type Description
    Guid

    EntityTypeID

    [Key] The type of entity that this watcher is against

    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, false, IsEntityTypeLink = true)]
    [EntityKeyProperty]
    [RequiredNoDefaultIDValidation]
    Guid EntityTypeID { get; set; }
    Property Value
    Type Description
    Guid

    RoleID

    [Key] Links to IRole. Optional - The Role (and thus all Users of the Role) that is watching this item

    A User, Role or Team must be selected as a Watcher, though the rest can be blank

    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, true)]
    [EntityRelationship(EntityID.Roles, "ID", SingleJoinType.ZeroToOne, "Role", "Watchers", DeleteWithRelationship = true)]
    [EntityDescription("The role to notify when this watcher is triggered.")]
    [EntityKeyProperty]
    Guid? RoleID { get; set; }
    Property Value
    Type Description
    Guid?

    TeamID

    [Key] Links to ITeam. Optional - The Team (and thus all Users of the Team) that is watching this item

    A User, Role or Team must be selected as a Watcher, though the rest can be blank

    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, true)]
    [EntityRelationship(EntityID.Teams, "ID", SingleJoinType.ZeroToOne, "Team", "Watchers", DeleteWithRelationship = true)]
    [EntityDescription("The team to notify when this watcher is triggered.")]
    [EntityKeyProperty]
    Guid? TeamID { get; set; }
    Property Value
    Type Description
    Guid?

    UserID

    [Key] Links to IUser. Optional - The User that is watching this item

    A User, Role or Team must be selected as a Watcher, though the rest can be blank

    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, true)]
    [EntityRelationship(EntityID.Users, "ID", SingleJoinType.ZeroToOne, "User", "Watchers", DeleteWithRelationship = true)]
    [EntityDescription("The individual user to notify when this watcher is triggered.")]
    [EntityKeyProperty]
    Guid? UserID { get; set; }
    Property Value
    Type Description
    Guid?

    WatcherTypeID

    [Key] Links to IWatcherType. The type of watcher

    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, false)]
    [RequiredNoDefaultIDValidation]
    [EntityRelationship(EntityID.WatcherType, "ID", SingleJoinType.One, "Watcher Type", "Watchers", DeleteWithRelationship = true)]
    [EntityDescription("The watcher type.")]
    [EntityKeyProperty]
    Guid WatcherTypeID { get; set; }
    Property Value
    Type Description
    Guid

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)

    See Also

    IWatcherType
    IWatcherNotification
    IWatcherNotificationListener
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.