本文整理汇总了C#中IExtensionHost类的典型用法代码示例。如果您正苦于以下问题:C# IExtensionHost类的具体用法?C# IExtensionHost怎么用?C# IExtensionHost使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IExtensionHost类属于命名空间,在下文中一共展示了IExtensionHost类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Install
public bool Install(IExtensionHost host)
{
//Debugger.Break();
if (host == null)
throw new ArgumentNullException("host");
IExtensionPoint listeners = host.GetExtensionPoint("EventListeners");
if (listeners == null)
return false;
listeners.Install(this);
// NiceToHave: inject configuration from configuration file
var processName = Process.GetCurrentProcess().ProcessName;
var perfCounterBuilders = new[]
{
new PerfCounterBuilder("Process", "Private Bytes", processName),
new PerfCounterBuilder("Process", "Virtual Bytes", processName),
new PerfCounterBuilder("Process", "Handle Count", processName),
new PerfCounterBuilder("Process", "Thread Count", processName),
new PerfCounterBuilder(".NET CLR Memory", "# Bytes in all Heaps", processName),
new PerfCounterBuilder(".NET CLR Loading", "Current appdomains", processName)
};
mPerfCollector = new PerfCollector(new CsvPerfLogger(@"c:\PerfLogs", @"nunit.csv", perfCounterBuilders), perfCounterBuilders);
return true;
}
示例2: Install
public bool Install(IExtensionHost host)
{
IExtensionPoint extensionPoint = host.GetExtensionPoint("SuiteBuilders");
if (extensionPoint == null) return false;
extensionPoint.Install(this);
return true;
}
示例3: StateTest
public StateTest()
{
this.stateMachineInformation = A.Fake<IStateMachineInformation<States, Events>>();
this.extensionHost = A.Fake<IExtensionHost<States, Events>>();
this.testee = new State<States, Events>(States.A, this.stateMachineInformation, this.extensionHost);
}
示例4: Install
public bool Install(IExtensionHost host)
{
Debug.Listeners.Clear();
Debug.Listeners.Add(new AssertFailTraceListener());
Console.WriteLine("Addin: NUnitAssertHandlerAddin installed.");
return true;
}
示例5: Install
public bool Install(IExtensionHost host)
{
var builders = host.GetExtensionPoint("SuiteBuilders");
if (builders == null) return false;
builders.Install(this);
return true;
}
示例6:
bool IAddin.Install(IExtensionHost host)
{
var suiteBuilders = host.GetExtensionPoint("SuiteBuilders");
if (suiteBuilders == null)
return false;
suiteBuilders.Install(this);
return true;
}
示例7: Install
public bool Install(IExtensionHost host)
{
// Debugger.Launch();
// var nunitVersion = typeof(IExtensionHost).Assembly.GetName().Version;
var eventListeners = host.GetExtensionPoint("EventListeners");
eventListeners.Install(new TeamCityEventListener());
return true;
}
示例8: Install
public bool Install(IExtensionHost host)
{
var testCaseBuilders = host.GetExtensionPoint("SuiteBuilders");
testCaseBuilders.Install(this);
return true;
}
示例9: Install
public bool Install(IExtensionHost host)
{
var listeners = host.GetExtensionPoint("EventListeners");
listeners.Install(this);
return true;
}
示例10: Install
public bool Install(IExtensionHost host)
{
IExtensionPoint builders = host.GetExtensionPoint( "SuiteBuilders" );
if ( builders == null )
return false;
builders.Install( new SampleSuiteExtensionBuilder() );
return true;
}
示例11: Install
public bool Install(IExtensionHost host)
{
System.Diagnostics.Trace.WriteLine( "MaxTimeDecorator: Install called" );
IExtensionPoint decorators = host.GetExtensionPoint( "TestDecorators" );
if ( decorators == null ) return false;
decorators.Install( this );
return true;
}
示例12: Install
public bool Install(IExtensionHost host)
{
Console.WriteLine("install called");
IExtensionPoint builders = host.GetExtensionPoint("SuiteBuilders");
if (builders == null)
return false;
builders.Install(this);
return true;
}
示例13: Install
public bool Install(IExtensionHost host)
{
IExtensionPoint testCaseBuilders = host.GetExtensionPoint("EventListeners");
if (testCaseBuilders == null)
return false;
testCaseBuilders.Install(this); //this implments both interfaces
return true;
}
示例14: Install
public bool Install(IExtensionHost host)
{
IExtensionPoint decorators = host.GetExtensionPoint("TestDecorators");
if (decorators == null)
return false;
decorators.Install(this);
return true;
}
示例15: RegistrarTest
public RegistrarTest()
{
this.factory = A.Fake<IFactory>();
this.eventTopicHost = A.Fake<IEventTopicHost>();
this.eventInspector = A.Fake<IEventInspector>();
this.extensionsHost = A.Fake<IExtensionHost>();
this.testee = new Registrar(this.factory, this.eventTopicHost, this.eventInspector, this.extensionsHost);
}