예제 #1
0
 /// <summary>应用参数设置</summary>
 /// <param name="mi"></param>
 public virtual void Apply(NewLife.Cube.Entity.OAuthConfig mi)
 {
     Name = mi.Name;
     if (!mi.Server.IsNullOrEmpty())
     {
         Server = mi.Server;
     }
     if (!mi.AccessServer.IsNullOrEmpty())
     {
         AccessServer = mi.AccessServer;
     }
     if (!mi.AppId.IsNullOrEmpty())
     {
         Key = mi.AppId;
     }
     if (!mi.Secret.IsNullOrEmpty())
     {
         Secret = mi.Secret;
     }
     if (!mi.Scope.IsNullOrEmpty())
     {
         Scope = mi.Scope;
     }
 }
예제 #2
0
        /// <summary>应用参数</summary>
        /// <param name="mi"></param>
        public override void Apply(NewLife.Cube.Entity.OAuthConfig mi)
        {
            base.Apply(mi);

            SetMode(Scope);
        }