Quickstarts.HistoricalEvents.Server.ReportGenerator.GetReport C# (CSharp) Method

GetReport() public method

Converts the DB row to a UA event,
public GetReport ( ISystemContext context, ushort namespaceIndex, ReportType reportType, DataRow row ) : BaseEventState
context ISystemContext The UA context to use for the conversion.
namespaceIndex ushort The index assigned to the type model namespace.
reportType ReportType The type of report.
row System.Data.DataRow The source for the report.
return Opc.Ua.BaseEventState
        public Opc.Ua.BaseEventState GetReport(ISystemContext context, ushort namespaceIndex, ReportType reportType, DataRow row)
        {
            switch (reportType)
            {
                case ReportType.FluidLevelTest: return GetFluidLevelTestReport(context, namespaceIndex, row);
                case ReportType.InjectionTest: return GetInjectionTestReport(context, namespaceIndex, row);
            }

            return null;
        }