{
if (State == State.SetDefaults)
{
........
}
else if (State == State.Configure)
{
........
}
else if (State == State.Terminated)
{
SendMail ("[email protected]", "STRATEGY DISABLED ! ", " Review " );
}
}
Strategy 'PRS': Error on calling 'OnStateChange' method: Object reference not set to an instance of an object.
It seems NOT to have serious consequences of any kind, it even works as thought but since I don't like to see errors, I'd like to know if perhaps there's some restriction to use sendmail() from state.Terminated, if so, please indicate me another way to send the alert.
Thanks
Comment