Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Services/Remoting
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv6472
Modified Files:
RemotingConfigurer.cs
Log Message:
Fix RemotingConfigurer after changing "FileName" 's property type from string to IResource.
Index: RemotingConfigurer.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Services/Remoting/RemotingConfigurer.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** RemotingConfigurer.cs 8 Aug 2007 17:47:58 -0000 1.5
--- RemotingConfigurer.cs 11 Sep 2007 20:56:27 -0000 1.6
***************
*** 107,123 ****
/// The object factory used by the application context.
/// </param>
- /// <exception cref="Spring.Objects.ObjectsException">
- /// In case of errors.
- /// </exception>
- /// <exception cref="System.ArgumentException">
- /// If filename is not set.
- /// </exception>
/// <seealso cref="Spring.Objects.Factory.Config.IObjectFactoryPostProcessor.PostProcessObjectFactory(IConfigurableListableObjectFactory)"/>
public void PostProcessObjectFactory(IConfigurableListableObjectFactory factory)
{
#if NET_2_0
! RemotingConfiguration.Configure(_filename.File.FullName, _ensureSecurity);
#else
! RemotingConfiguration.Configure(_filename.File.FullName);
#endif
#region Instrumentation
--- 107,118 ----
/// The object factory used by the application context.
/// </param>
/// <seealso cref="Spring.Objects.Factory.Config.IObjectFactoryPostProcessor.PostProcessObjectFactory(IConfigurableListableObjectFactory)"/>
public void PostProcessObjectFactory(IConfigurableListableObjectFactory factory)
{
+ string filename = (Filename == null) ? null : Filename.File.FullName;
#if NET_2_0
! RemotingConfiguration.Configure(filename, EnsureSecurity);
#else
! RemotingConfiguration.Configure(filename);
#endif
#region Instrumentation
***************
*** 125,132 ****
if (log.IsDebugEnabled)
{
! if (_filename == null)
log.Debug("Default remoting infrastructure loaded.");
else
! log.Debug(String.Format("Remoting infrastructure configured using file '{0}'.", _filename));
}
--- 120,131 ----
if (log.IsDebugEnabled)
{
! if (filename == null)
! {
log.Debug("Default remoting infrastructure loaded.");
+ }
else
! {
! log.Debug(String.Format("Remoting infrastructure configured using file '{0}'.", filename));
! }
}
|