public override void RegisterListener(OperationalListener listener) { this.listener = listener; CompletionReport report = new SuccessCompletionReport(typeof(OperationalStartupBehavior)); SendCompletionReport(report); }
public void SendCompletionReport(UrbanChallenge.Behaviors.CompletionReport.CompletionReport report) { //OperationalTrace.WriteInformation("sending completion report {0}, listener {1}", report, listener == null ? "<null>" : listener.ToString()); OperationalListener l = listener; if (l != null) { try { l.OnCompletionReport(report); OperationalTrace.WriteVerbose("completion report succeeded"); } catch (Exception ex) { OperationalTrace.WriteWarning("completion report send failed: {0}", ex); } ForwardCompReport(report); } }
public override void UnregisterListener(OperationalListener listener) { this.listener = null; }
public override void UnregisterListener(OperationalListener listener) { }