private void PushToService(int destination, string method, byte[] param, MessageType type, int session) { Message msg = new Message(); msg.Source = m_serviceAddress; msg.Destination = destination; msg.Method = method; msg.Data = param; msg.RPCSession = session; msg.Type = type; ServiceContext targetService = ServiceSlots.GetInstance().Get(destination); targetService.Push(msg); }
protected void Call(string destination, string method, byte[] param, SSContext context, RPCCallback cb) { int serviceId = ServiceSlots.GetInstance().Name2Id(destination); Call(serviceId, method, param, context, cb); }
protected void Send(string destination, string method, byte[] param) { int serviceId = ServiceSlots.GetInstance().Name2Id(destination); Send(serviceId, method, param); }