public override void Start() {
EWResult res;
if( false == _result.TryGet(out res) ) {
//This is the first time we've been called.
_n.EdgeFactory.CreateEdgeTo(_ta, this.HandleEdge);
}
else {
//This is the second time we've been called:
if(BU.ProtocolLog.LinkDebug.Enabled) {
if (res.Success) {
if(BU.ProtocolLog.LinkDebug.Enabled)
BU.ProtocolLog.Write(BU.ProtocolLog.LinkDebug, String.Format(
"(Linker) Handle edge success: {0}", res.Edge));
} else {
if(BU.ProtocolLog.LinkDebug.Enabled) {
BU.ProtocolLog.Write(BU.ProtocolLog.LinkDebug, String.Format(
"(Linker) Handle edge failure: {0} done.", res.Exception));
}
}
}
FireFinished();
}
}