public void CanWeaveOutlook() { var mappings = new Dictionary<string, IWeave>(); mappings.Add(typeof (Broadcast).FullName, new BroadcastWeave(typeof (MsmqExitBroadcast))); mappings.Add(typeof (Publish).FullName, new PublishWeave(typeof (ReturnValueInMemoryPublication), typeof (SelfInMemoryPublication), typeof (ArgumentInMemoryPublication))); mappings.Add(typeof (StackTraceBroadcast).FullName, new StackTraceBroadcastWeave(typeof (TextStackTracePublication))); mappings.Add(typeof (Performance).FullName, new ExecutionTimeMonitorWeave(typeof (ExecutionTimeMonitor))); mappings.Add(typeof (Ping).FullName, new PingWeave(typeof (MsmqPinger))); var weaver = new AspectWeaver(new OutlookAttributeVisitorFactory(mappings)); weaver.Weave( new ModuleIO( @"F:\Projects\IMD\src\Outlook\IMD - Outlook 2003 AddIn\bin\Debug\IMD.AddinProjectDependency.dll"), false); weaver.Weave( new ModuleIO(@"F:\Projects\IMD\src\Outlook\IMD - Outlook 2003 AddIn\bin\Debug\IMD.Outlook.Core.dll"), false); weaver.Weave( new ModuleIO( @"F:\Projects\IMD\src\Outlook\IMD - Outlook 2003 AddIn\bin\Debug\IMD.Outlook.Core.ContactManagement.dll"), false); weaver.Weave( new ModuleIO(@"F:\Projects\IMD\src\Outlook\IMD - Outlook 2003 AddIn\bin\Debug\IMD.Outlook.Services.dll"), false); weaver.Weave( new ModuleIO( @"F:\Projects\IMD\src\Outlook\IMD - Outlook 2003 AddIn\bin\Debug\IMD.Outlook.WrapperImpl.dll"), false); weaver.Weave( new ModuleIO(@"F:\Projects\IMD\src\Outlook\IMD - Outlook 2003 AddIn\bin\Debug\IMD.Outlook.Services.dll"), false); }
public void CanWeaveIMDServiceContractDLL() { var weaver = new AspectWeaver(new OutlookAttributeVisitorFactory()); weaver.Weave( new ModuleIO( @"F:\Projects\IMD\src\Outlook\IMD - Outlook 2003 AddIn\bin\Debug\IMD.Service.Contract.dll"), false); }
public void DebugWeave() { var weaver = new AspectWeaver(new OutlookAttributeVisitorFactory()); weaver.Weave( new ModuleIO( @"C:\Users\prateekk\Documents\Visual Studio 2008\Projects\TrialProject\TrialProject\bin\Debug\TrialProject.exe"), false); }
public void CanWeaveTest() { var mappings = new Dictionary<string, IWeave>(); mappings.Add(typeof (Broadcast).FullName, new BroadcastWeave(typeof (TextExitBroadcast))); mappings.Add(typeof (Publish).FullName, new PublishWeave(typeof (TextReturnValuePublication), typeof (TextSelfPublication), typeof (TextArgumentPublication))); mappings.Add(typeof (StackTraceBroadcast).FullName, new StackTraceBroadcastWeave(typeof (TextStackTracePublication))); mappings.Add(typeof (Performance).FullName, new ExecutionTimeMonitorWeave(typeof (TextExecutionTimeMonitor))); mappings.Add(typeof (Ping).FullName, new PingWeave(typeof (TextPinger))); mappings.Add(typeof (RemoteDebug).FullName, new DebugWeave(typeof (MsmqBreakpoint))); var weaver = new AspectWeaver(new OutlookAttributeVisitorFactory(mappings)); weaver.Weave( new ModuleIO(@"F:\spikes\SampleCecilTestbed\SampleCecilTestbed\bin\Debug\SampleCecilTestbed.exe"), true); }