public void QueueCount() { QueueClient client = new QueueClient(queuenmae); var ack = client.Report <int>(QueueCmdReport.QueueCount); Netlog.DebugFormat("Client QueueCount :{0}", ack); }
public void DequeueItem() { QueueClient client = new QueueClient(queuenmae); var message = client.Receive(); Netlog.DebugFormat("Client Receive state:{0}", message.Print()); }
public void AddItem(int index) { QueueClient client = new QueueClient(queuenmae); var message = new Message("QClient", queuenmae, new EntityDemo(index)); var ack = client.Send(message); Netlog.DebugFormat("Client Send state:{0}", ack.Print()); }
//public void Add(SyncTask task, DataSyncEntity entity, IDataCache owner) //{ // if (task == null || entity == null || owner == null) // { // this.LogAction(CacheAction.SyncTime, CacheActionState.Failed, "SyncTaskBox can not add task null!"); // return; // } // Add(new SyncBoxTask() // { // Entity = entity, // //ItemName = task.ItemName, // Owner = owner // //TaskItem = task.Item // }); //} public void Add(ISyncTask item) { if (item == null) { Netlog.Warn("SyncTaskBox can not add task null!"); return; } m_SynBox.Enqueue(item); Netlog.DebugFormat("SyncTaskBox Added SyncBoxTask {0}", item.ItemName); }