예제 #1
0
        public void FoundFrameworkEvent(DenimGroup.Sprajax.Engine.Model.Framework framework)
        {
            Log("Found Framework: " + framework.ToString());

            Guid          frameworkId = Guid.NewGuid();
            SqlConnection conn        = GetConnection();
            SqlCommand    cmd         = new SqlCommand();

            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "up_CreateFramework";
            cmd.Connection  = conn;
            cmd.Parameters.Add(new SqlParameter("ID", frameworkId));
            cmd.Parameters.Add(new SqlParameter("SessionID", _sessionId));
            cmd.Parameters.Add(new SqlParameter("Name", framework.Name));
            cmd.Parameters.Add(new SqlParameter("Platform", framework.Platform.ToString()));
            cmd.ExecuteNonQuery();
            conn.Dispose();

            this._frameworks[framework] = frameworkId;
        }
예제 #2
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="uri"></param>
        /// <param name="fileContent"></param>
        /// <returns></returns>
        public Framework ProcessJavaScriptFileEvent(string uri, string fileContent)
        {
            Framework retVal = null;

            if (uri == null)
            {
                return (null);
            }

            if (uri.Contains("Atlas.js") || uri.Contains("WebResource.axd"))
            {
                return (new Framework("Atlas", Platform.ASPNET));
            }

            if (uri.Contains("gwt.js"))
            {
                retVal = new Framework("Google Web Toolkit", Platform.J2EE);
            }

            return (retVal);
        }