Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Manufacturing Execution System 2023 R2

Content of the Code in the TestHooksClass​.cs

  • Last UpdatedOct 23, 2024
  • 1 minute read

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

namespace TestHooksNamespace

{

public class TestHooksClass

{

public TestHooksClass()

{ }

public void TestHooksMethod(string xmlSource)

{

// Compose a string that consists of three lines.

string lines = string.Format("DateTime: {0}, XMLSource: {1}",

DateTime.Now.ToString(), xmlSource);

// Write the string to a file.

using (System.IO.StreamWriter file = new

System.IO.StreamWriter("c:\\Temp\\UomLog.txt", true))

{

file.WriteLine(lines);

}

}

}

}

The concept described above is also applicable to the post-hook of type assembly.

TitleResults for “How to create a CRG?”Also Available in