Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Web/Services
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv3046/src/Spring/Spring.Web/Web/Services
Modified Files:
WebServiceExporter.cs
Log Message:
Small optimization to the WebServiceExporter.
Index: WebServiceExporter.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Web/Services/WebServiceExporter.cs,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** WebServiceExporter.cs 11 Oct 2007 05:57:33 -0000 1.25
--- WebServiceExporter.cs 9 Nov 2007 15:42:48 -0000 1.26
***************
*** 232,235 ****
--- 232,242 ----
public object GetObject()
{
+ // no sense to call this method, because the web service type
+ // will be instantiated by the .NET infrastructure. (ObjectType is used instead)
+ if (proxyConstructor == null)
+ {
+ proxyConstructor = proxyType.GetConstructor(Type.EmptyTypes);
+ }
+
return proxyConstructor.Invoke(ObjectUtils.EmptyObjects);
}
***************
*** 318,323 ****
proxyType = builder.BuildProxyType();
-
- proxyConstructor = proxyType.GetConstructor(Type.EmptyTypes);
}
--- 325,328 ----
|