Exemple #1
0
        internal static string GetDynamicLibrary(object key, BuilderBase builder)
        {
            var tk = key;

            lock (StaticLock)
            {
                string assemblyFile;
                if (_EntryPoints.TryGetValue(tk, out assemblyFile))
                {
                    return(assemblyFile);
                }

                assemblyFile = Path.Combine(TempDir, "L" + Interlocked.Increment(ref _AssemblyCount) + ".T" + DateTime.Now.Ticks + ".dll");
                builder.Save(assemblyFile);

                return(assemblyFile);
            }
        }