Requirements for Managed Code Responses

System Center

.NET Framework Requirements

  • MOM requires version 1.1 or later of the .NET Framework. MOM uses this version of the .NET Framework runtime to dynamically load the assembly and invoke the specified method.
  • You can use the .NET Framework version 1.0, or later, to compile the assembly.

Assembly Requirements

  • Assemblies must be strongly named and installed in the global assembly cache (GAC) of the computer running the response. When specifying the Assembly name in the response properties, you should use the full name, which includes the name, version, culture, and public key. You do not need to specify the path to the assembly file. If the assembly is also installed in the same folder that stores the MOM service executables, you can specify the short version of the assembly name.
  • Both executable (.exe) and dynamic link library (.dll) assemblies are supported.
  • The method you are calling can be static, or a member of a class instance. If it is an instance method, MOM will automatically create an instance of the class. To support this process, the class must expose a public default constructor that takes no parameters.
  • The method you are calling can accept parameters. The parameter values are configured in the properties for the rule that launches the response. Parameters can only use the following base types, which are defined by the Common Language Specification:

    • System.Byte
    • System.Boolean
    • System.Char
    • System.DateTime
    • System.Decimal
    • System.Double
    • System.Int16
    • System.Int32
    • System.Int64
    • System.SByte
    • System.Single
    • System.String
    • System.UInt16
    • System.UInt32
    • System.UInt64

    The string value you specify should be in a format that will be recognized by the class's Parse() method.

    There is one exception to this requirement. Methods can accept one parameter of type Microsoft.EnterpriseManagement.Mom.Runtime.Context class. This object represents the MOM runtime context. You cannot configure the initial state of the Context parameter within the rule's properties.

Show: