Пример #1
0
        /// <summary>
        /// Inits this instance.
        /// </summary>
        /// <returns></returns>
		internal bool Init()
		{
			try
			{
				if (m_SecurityProviderType != null)
				{
					Type t = Type.GetType(m_SecurityProviderType);

					if (t == null)
						return false;

					m_SecurityProvider = (AjaxSecurityProvider)Activator.CreateInstance(t, new object[0]);
				}
			}
			catch(Exception)
			{
				return false;
			}

			return true;
		}
Пример #2
0
        /// <summary>
        /// Inits this instance.
        /// </summary>
        /// <returns></returns>
        internal bool Init()
        {
            try
            {
                if (m_SecurityProviderType != null)
                {
                    Type t = Type.GetType(m_SecurityProviderType);

                    if (t == null)
                    {
                        return(false);
                    }

                    m_SecurityProvider = (AjaxSecurityProvider)Activator.CreateInstance(t, new object[0]);
                }
            }
            catch (Exception)
            {
                return(false);
            }

            return(true);
        }