public override void Execute(INotification notification) { Dictionary <string, string> dic = notification.Body as Dictionary <string, string>; string telephone = dic["telephone"].ToString(); string password = dic["password"].ToString(); string name = dic["nickName"].ToString(); string icon = dic["icon"].ToString(); string checkCode = dic["checkCode"].ToString(); string userType = dic["userType"].ToString(); // NGUIDebug.Log(LoginFade.GetInstance().RetrieveProxy(RegisterProxy.NAME)); RegisterProxy registerProxy = (RegisterProxy)LoginFade.GetInstance().RetrieveProxy(RegisterProxy.NAME); registerProxy.Register(telephone, password, name, icon, checkCode, userType); }
private void HandleRegisterProxy(RegisterProxy registerProxy) { var proxy = registerProxy.ShardRegionProxy; Log.Debug("Shard region proxy registered: [{0}]", proxy); if (_currentState.RegionProxies.Contains(proxy)) { Sender.Tell(new RegisterAck(Self)); } else { var context = Context; var self = Self; Update(new ShardRegionProxyRegistered(proxy), e => { _currentState = _currentState.Updated(e); context.Watch(proxy); proxy.Tell(new RegisterAck(self)); }); } }
static LoggerUtil() { logger = RegisterProxy.GetInstance <ILogger>(); }
public bool Register(Author author) { return(RegisterProxy.Register(author)); }
public bool Register(Client client) { return(RegisterProxy.Register(client)); }