private MessageBookmark acceptedBookmarks(GlobalActions actions, Message message) { var queue = actions.GetQueue(message.Queue); var bookmark = queue.Enqueue(message); return(bookmark); }
// Use this for initialization public virtual void Awake() { act = this; loadingWait = false; adviceComp = GameObject.FindGameObjectWithTag("Advice").GetComponent <AdviceComponents>(); loadingComp = GameObject.FindGameObjectWithTag("Loading").GetComponent <LoadingComponents>(); UnityThread.initUnityThread(); }
public void AddUtxoRecord(UtxoMsg utxo) { if (this.MainSet.ContainsKey(utxo.AccountId)) { var item = this.MainSet[utxo.AccountId].Where(u => u.TransactionHash == utxo.TransactionHash && u.OutputIndex == utxo.OutputIndex).FirstOrDefault(); if (item == null) { this.MainSet[utxo.AccountId].Add(utxo); } else { item.BlockHash = utxo.BlockHash; item.IsConfirmed = utxo.IsConfirmed; } if (GlobalActions.TransactionNotifyAction != null) { GlobalActions.TransactionNotifyAction(utxo.TransactionHash); } } }
public static void AddApFrameworkGloablAction( AdditionalActionDelegate action , AddtionalActionSequence sequence) { GlobalActions.Add(new KeyValuePair <AddtionalActionSequence, AdditionalActionDelegate>(sequence, action)); }