コード例 #1
0
        internal static string WarmupAssembly(PipelineStepDescription stepDescription)
        {
            var pluginAssemblyInfo = PluginAssemblyInfo.Create(stepDescription);

            if (!pluginAssemblyInfo.IsAssemblyExist)
            {
                Execute(stepDescription.AssemblyId);
            }

            return(pluginAssemblyInfo.FullPath);
        }
コード例 #2
0
            public static PluginAssemblyInfo Create(PipelineStepDescription stepDescription)
            {
                long unixTimeSec = ((DateTimeOffset)stepDescription.Modified).ToUnixTimeSeconds();

                var folder = Path.Combine(BasePath,
                                          AssembliesFolderName,
                                          $"{stepDescription.AssemblyName}-{unixTimeSec}");

                var fullPath = Path.Combine(folder,
                                            $"{stepDescription.AssemblyName}.dll");

                return(new PluginAssemblyInfo
                {
                    BaseFolder = folder,
                    FullPath = fullPath
                });
            }