From: <jer...@us...> - 2008-06-07 22:48:48
|
Revision: 120 http://structuremap.svn.sourceforge.net/structuremap/?rev=120&view=rev Author: jeremydmiller Date: 2008-06-07 15:48:46 -0700 (Sat, 07 Jun 2008) Log Message: ----------- missed a file or two Added Paths: ----------- trunk/Source/StructureMap/Diagnostics/Doctor.cs trunk/Source/StructureMap/IBootstrapper.cs Added: trunk/Source/StructureMap/Diagnostics/Doctor.cs =================================================================== --- trunk/Source/StructureMap/Diagnostics/Doctor.cs (rev 0) +++ trunk/Source/StructureMap/Diagnostics/Doctor.cs 2008-06-07 22:48:46 UTC (rev 120) @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.Text; +using StructureMap.Graph; + +namespace StructureMap.Diagnostics +{ + + + public class DoctorReport + { + public string Message; + public bool Failure; + } + + public class DoctorRunner : MarshalByRefObject + { + public override object InitializeLifetimeService() + { + return null; + } + + public DoctorReport RunReport(string bootstrapperTypeName) + { + // TODO: bootstrapperType cannot be found + // TODO: bootstrapperType blows up + TypePath path = new TypePath(bootstrapperTypeName); + Type bootstrapperType = path.FindType(); + + IBootstrapper bootstrapper = (IBootstrapper) Activator.CreateInstance(bootstrapperType); + + // TODO - random error + PluginGraph graph = StructureMapConfiguration.GetPluginGraph(); + + // TODO -- Fails on constructor + if (graph.Log.ErrorCount > 0) + { + + } + + + } + } + + public class Doctor + { + } +} Added: trunk/Source/StructureMap/IBootstrapper.cs =================================================================== --- trunk/Source/StructureMap/IBootstrapper.cs (rev 0) +++ trunk/Source/StructureMap/IBootstrapper.cs 2008-06-07 22:48:46 UTC (rev 120) @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace StructureMap +{ + public interface IBootstrapper + { + void BootstrapStructureMap(); + } +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |