ActivityMonitorAttribute Class

System Center
This attribute declares that an Activity class should be run as a monitor activity.

Namespace: Microsoft.SystemCenter.Orchestrator.Integration
Assembly: Microsoft.SystemCenter.Orchestrator.Integration (in Microsoft.SystemCenter.Orchestrator.Integration.dll)

'Usage
Dim instance As ActivityMonitorAttribute

[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Interface, AllowMultiple=false, Inherited=false)] 
public sealed class ActivityMonitorAttribute : Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Interface, AllowMultiple=false, Inherited=false) */ 
public final class ActivityMonitorAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Interface, AllowMultiple=false, Inherited=false) 
public final class ActivityMonitorAttribute extends Attribute

[Activity("Monitor Computer")]
[ActivityMonitor(Interval=15)]
public class MonitorComputer
{
    private IPAddress computer;

    [ActivityInput("Hostname or Adress")]
    public IPAddress Computer
    {
        set { computer = value; }
    }

    [ActivityOutput]
    IPStatus Status
    {
        get { new Ping().Send(computer).Status; }
    }
}

Monitor activities, unlike standard task activities, will be invoked repeatedly until the workflow that contains them is stopped. Furthermore, your object will be kept alive until the workflow is stopped which means that that any state information will be maintained between subsequent invocations.


System.Object
   System.Attribute
    Microsoft.SystemCenter.Orchestrator.Integration.ActivityMonitorAttribute

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

 
Show: