public GoogleSignInController(IGoogleSignInRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.repository = repository;
        }
        public GoogleSignInController(IGoogleSignInRepository repository, string catalog, LoginView view)
        {
            this._LoginId  = view.LoginId.To <long>();
            this._UserId   = view.UserId.To <int>();
            this._OfficeId = view.OfficeId.To <int>();
            this._Catalog  = catalog;

            this.repository = repository;
        }
 protected override void Initialize(HttpControllerContext context)
 {
     base.Initialize(context);
     if (this.repository == null)
     {
         this.repository = new GoogleSignInProcedure
         {
             _Catalog = this.MetaUser.Catalog,
             _LoginId = this.MetaUser.LoginId,
             _UserId = this.MetaUser.UserId
         };
     }
 }
Example #4
0
 protected override void Initialize(HttpControllerContext context)
 {
     base.Initialize(context);
     if (this.repository == null)
     {
         this.repository = new GoogleSignInProcedure
         {
             _Catalog = this.MetaUser.Catalog,
             _LoginId = this.MetaUser.LoginId,
             _UserId  = this.MetaUser.UserId
         };
     }
 }
        public GoogleSignInController()
        {
            this._LoginId = AppUsers.GetCurrent().View.LoginId.To<long>();
            this._UserId = AppUsers.GetCurrent().View.UserId.To<int>();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.To<int>();
            this._Catalog = AppUsers.GetCatalog();

            this.repository = new GoogleSignInProcedure
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }
        public GoogleSignInController()
        {
            this._LoginId  = AppUsers.GetCurrent().View.LoginId.To <long>();
            this._UserId   = AppUsers.GetCurrent().View.UserId.To <int>();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.To <int>();
            this._Catalog  = AppUsers.GetCatalog();

            this.repository = new GoogleSignInProcedure
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId  = this._UserId
            };
        }
 public GoogleSignInController(IGoogleSignInRepository repository)
 {
     this.repository = repository;
 }
Example #8
0
 public GoogleSignInController(IGoogleSignInRepository repository)
 {
     this.repository = repository;
 }