void m_MyCmDevice_OnBatchPreflightSample(SamplePreflightEventArgs args) { m_MyCmDevice.AuditMessage(AuditLevel.Warning, "OnBatchPreflightSample handler"); if (args.SamplePreflight.CustomInjectionVariables != null) { foreach (ICustomVariable customInjectionVariable in args.SamplePreflight.CustomInjectionVariables) { m_MyCmDevice.AuditMessage(AuditLevel.Warning, String.Format("CIV: Name: {0} Type: {1} Value: {2}", customInjectionVariable.Name, customInjectionVariable.Type, customVariableValue(customInjectionVariable))); } } }
private void OnDeviceBatchPreflightSample(SamplePreflightEventArgs args) { ISamplePreflight injection = args.SamplePreflight; Log.WriteLine(Id, "Injection \"" + injection.Name + "\""); }
void m_Device_OnBatchPreflightSample(SamplePreflightEventArgs args) { String message = String.Format("Device.OnBatchPreflightSample({0}) called", args.SamplePreflight); m_Device.AuditMessage(AuditLevel.Warning, message); }