本文整理汇总了C#中IExtensionHost类的典型用法代码示例。如果您正苦于以下问题:C# IExtensionHost类的具体用法?C# IExtensionHost怎么用?C# IExtensionHost使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IExtensionHost类属于命名空间,在下文中一共展示了IExtensionHost类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:jeromerg,项目名称:nunit-monitor,代码行数:28,代码来源:NunitMonitorAddin.cs
示例2: Install
public bool Install(IExtensionHost host)
{
IExtensionPoint extensionPoint = host.GetExtensionPoint("SuiteBuilders");
if (extensionPoint == null) return false;
extensionPoint.Install(this);
return true;
}
开发者ID:john-ross,项目名称:concordion-net,代码行数:7,代码来源:SuiteBuilderAddin.cs
示例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);
}
开发者ID:WenningQiu,项目名称:appccelerate,代码行数:7,代码来源:StateTest.cs
示例4: Install
public bool Install(IExtensionHost host)
{
Debug.Listeners.Clear();
Debug.Listeners.Add(new AssertFailTraceListener());
Console.WriteLine("Addin: NUnitAssertHandlerAddin installed.");
return true;
}
开发者ID:jagrem,项目名称:Pash,代码行数:8,代码来源:NUnitAssertHandlerAddin.cs
示例5: Install
public bool Install(IExtensionHost host)
{
var builders = host.GetExtensionPoint("SuiteBuilders");
if (builders == null) return false;
builders.Install(this);
return true;
}
开发者ID:i-e-b,项目名称:FluentBdd,代码行数:8,代码来源:BehaviourBuilder.cs
示例6:
bool IAddin.Install(IExtensionHost host)
{
var suiteBuilders = host.GetExtensionPoint("SuiteBuilders");
if (suiteBuilders == null)
return false;
suiteBuilders.Install(this);
return true;
}
开发者ID:kitofr,项目名称:Cone,代码行数:8,代码来源:ConeNUnitAddin.cs
示例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;
}
开发者ID:NikolayPianikov,项目名称:JetBrains.TeamCity.NUnitAddins,代码行数:8,代码来源:TeamCityAddin.cs
示例8: Install
public bool Install(IExtensionHost host)
{
var testCaseBuilders = host.GetExtensionPoint("SuiteBuilders");
testCaseBuilders.Install(this);
return true;
}
开发者ID:romerod,项目名称:Testeroids,代码行数:8,代码来源:TriangulatedFixture.Generated.cs
示例9: Install
public bool Install(IExtensionHost host)
{
var listeners = host.GetExtensionPoint("EventListeners");
listeners.Install(this);
return true;
}
开发者ID:Ridermansb,项目名称:FluentSecurity,代码行数:8,代码来源:SpecFlowNUnitExtension.cs
示例10: Install
public bool Install(IExtensionHost host)
{
IExtensionPoint builders = host.GetExtensionPoint( "SuiteBuilders" );
if ( builders == null )
return false;
builders.Install( new SampleSuiteExtensionBuilder() );
return true;
}
开发者ID:hanabi1224,项目名称:lucene.net,代码行数:9,代码来源:Addin.cs
示例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;
}
开发者ID:plusql,项目名称:hsqldb-snapshot-20160112,代码行数:9,代码来源:MaxTimeDecorator.cs
示例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;
}
开发者ID:acken,项目名称:grensesnitt,代码行数:9,代码来源:InterfaceInvariantsAddIn.cs
示例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;
}
开发者ID:khebbie,项目名称:GrowlForNUnit,代码行数:9,代码来源:MyAddin.cs
示例14: Install
public bool Install(IExtensionHost host)
{
IExtensionPoint decorators = host.GetExtensionPoint("TestDecorators");
if (decorators == null)
return false;
decorators.Install(this);
return true;
}
开发者ID:v4viveksharma90,项目名称:selenium,代码行数:9,代码来源:WebDriverTestDecorator.cs
示例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);
}
开发者ID:ursenzler,项目名称:eventbroker,代码行数:9,代码来源:RegistrarTest.cs
示例16: Install
public bool Install(IExtensionHost host)
{
IExtensionPoint listeners = host.GetExtensionPoint( "EventListeners" );
if ( listeners == null )
return false;
listeners.Install( this );
return true;
}
开发者ID:fperezpt,项目名称:NUnitExtensions,代码行数:9,代码来源:CountExecutedAsserts.cs
示例17: Install
public bool Install(IExtensionHost host)
{
var eventListenersPoint = host.GetExtensionPoint("EventListeners");
if (eventListenersPoint == null)
{
return false;
}
eventListenersPoint.Install(this);
return true;
}
开发者ID:MarkBorcherding,项目名称:AgentBdd,代码行数:10,代码来源:GrowlNotifier.cs
示例18: Install
/// <summary>
/// When called, the add-in installs itself into
/// the host, if possible. Because NUnit uses separate
/// hosts for the client and test domain environments,
/// an add-in may be invited to istall itself more than
/// once. The add-in is responsible for checking which
/// extension points are supported by the host that is
/// passed to it and taking the appropriate action.
/// </summary>
/// <param name="host">The host in which to install the add-in</param>
/// <returns>True if the add-in was installed, otehrwise false</returns>
public bool Install(IExtensionHost host)
{
// Get the extension provider
var dataPointProviders = host.GetExtensionPoint("TestCaseProviders");
// Sanity check
if (null == dataPointProviders) return false;
// Install it
dataPointProviders.Install(this);
return true;
}
开发者ID:joaoasrosa,项目名称:nunitexternalsources,代码行数:21,代码来源:TestCaseSourceBase.cs
示例19: Install
public bool Install(IExtensionHost host)
{
IExtensionPoint extensionPoint = host.GetExtensionPoint("EventListeners");
if (extensionPoint != null)
{
extensionPoint.Install(this);
}
return false;
}
开发者ID:tonyx,项目名称:NUnitGrowlAddIn,代码行数:10,代码来源:NUnitGrowlAddIn.cs
示例20: Install
public bool Install(IExtensionHost host)
{
//LOGGER.GetLogger(LOGNAME).LogInfo("Install");
IExtensionPoint listeners = host.GetExtensionPoint("EventListeners");
if (listeners == null)
return false;
listeners.Install(this);
return true;
}
开发者ID:rohanbaraskar,项目名称:PageObjectFrameworkCSharp,代码行数:10,代码来源:NUnitExtension.cs
注:本文中的IExtensionHost类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论