public StandardResult Register(string account, string password)
 {
     _iidentification = new Identification();
     var ret = _iidentification.Register(account, password);
     if (ret.Ret)
     {
         GetService<IPackageDelivery>().RegisterTripper(account, account);
         GetService<IRecipientRegistration>().RegisterTripper(account, account);
         GetService<ITripperStatusParser>().RegisterTripper(account, account);
     }
     return ret;
 }
Пример #2
0
        public StandardResult Register(string account, string password)
        {
            _iidentification = new Identification();
            var ret = _iidentification.Register(account, password);

            if (ret.Ret)
            {
                GetService <IPackageDelivery>().RegisterTripper(account, account);
                GetService <IRecipientRegistration>().RegisterTripper(account, account);
                GetService <ITripperStatusParser>().RegisterTripper(account, account);
            }
            return(ret);
        }