Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.Web/System.Web.Compilation/WebServiceCompiler.cs')
-rw-r--r--mcs/class/System.Web/System.Web.Compilation/WebServiceCompiler.cs15
1 files changed, 5 insertions, 10 deletions
diff --git a/mcs/class/System.Web/System.Web.Compilation/WebServiceCompiler.cs b/mcs/class/System.Web/System.Web.Compilation/WebServiceCompiler.cs
index 4df2b6b9a94..20b87415730 100644
--- a/mcs/class/System.Web/System.Web.Compilation/WebServiceCompiler.cs
+++ b/mcs/class/System.Web/System.Web.Compilation/WebServiceCompiler.cs
@@ -59,15 +59,12 @@ namespace System.Web.Compilation
public override Type GetCompiledType ()
{
- Type type = CachingCompiler.GetTypeFromCache (parser.PhysicalPath);
+ Type type = CachingCompiler.GetTypeFromCache (parser.PhysicalPath, parser.ClassName);
if (type != null)
return type;
- if (parser.Program.Trim () == "") {
- type = parser.GetTypeFromBin (parser.ClassName);
- CachingCompiler.InsertType (type, parser.PhysicalPath);
- return type;
- }
+ if (parser.Program.Trim () == "")
+ return parser.GetTypeFromBin (parser.ClassName);
string lang = parser.Language;
CompilationConfiguration config;
@@ -96,7 +93,7 @@ namespace System.Web.Compilation
sw.WriteLine (parser.Program);
sw.Close ();
- string dllfilename = Path.GetFileName (tempcoll.AddExtension ("dll", true));
+ string dllfilename = tempcoll.AddExtension ("dll", true);
if (!Directory.Exists (dynamicBase))
Directory.CreateDirectory (dynamicBase);
@@ -109,9 +106,7 @@ namespace System.Web.Compilation
"No assembly returned after compilation!?");
results.TempFiles.Delete ();
- type = results.CompiledAssembly.GetType (parser.ClassName, true);
- CachingCompiler.InsertType (type, parser.PhysicalPath);
- return type;
+ return results.CompiledAssembly.GetType (parser.ClassName, true);
}
void CheckCompilerErrors (CompilerResults results)