Пример #1
0
        private void ForceGenerateOutputFile(Endpoint endpoint, JsFile jsFile)
        {
            try
            {
                JsFileGenerator.GenerateJsFileV2("003", endpoint, jsFile, rulesChanged: true);

                this.IsOutputFilesDirty = false;
                endpoint.LastUpdateDate = DateTime.Now;
            }
            catch (Exception ex)
            {
                this.log.Exception(ex);
            }
        }
Пример #2
0
        private void ForceGenerateAllOutputFiles(Endpoint endpoint)
        {
            try
            {
                endpoint.Application.JsFiles.ForEach(jsFile =>
                {
                    JsFileGenerator.GenerateJsFileV2("002", endpoint, jsFile, rulesChanged: true);

                    this.IsOutputFilesDirty = false;
                    endpoint.LastUpdateDate = DateTime.Now;
                });
            }
            catch (Exception ex)
            {
                this.log.Exception(ex);
            }
        }
Пример #3
0
        private void GenerateOutputFiles(Endpoint endpoint, Dictionary <string, ChangeDescriptor> fullChangeSet)
        {
            try
            {
                // TODO: changesList contains absolute of changes..does not necessarily apply to all files!!!!
                endpoint.Application.JsFiles.ForEach(jsFile =>
                {
                    //JsFileGenerator.GenerateJsFile("001", endpoint, jsFile, fullChangeSet);
                    JsFileGenerator.GenerateJsFileV2("001", endpoint, jsFile, fullChangeSet);

                    this.IsOutputFilesDirty = false;

                    endpoint.LastUpdateDate = DateTime.Now;
                });
            }
            catch (Exception ex)
            {
                this.log.Exception(ex);
            }
        }