Пример #1
0
    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));
                });
            }
        }
Пример #3
0
 static LoggerUtil()
 {
     logger = RegisterProxy.GetInstance <ILogger>();
 }
Пример #4
0
 public bool Register(Author author)
 {
     return(RegisterProxy.Register(author));
 }
Пример #5
0
 public bool Register(Client client)
 {
     return(RegisterProxy.Register(client));
 }