Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 protected AssemblyVisitorTask(AspectWeaver weaver)
 {
     this.weaver = weaver;
 }
Ejemplo n.º 4
0
 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);
 }
Ejemplo n.º 5
0
 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);
 }
Ejemplo n.º 6
0
 protected OutlookAssemblyVisitorTask(AspectWeaver weaver)
     : base(weaver)
 {
 }