/// <summary>
 /// Called to initialize the add in.
 /// </summary>
 public void Register(IGlobalContext context, IExtensionDefinitionContext controllerContext)
 {
     //we have to register all of our types during this call or they won't be used at all.
     controllerContext.RegisterSessionAnalyzer(typeof(SessionAnalyzer));
     controllerContext.RegisterSessionCommand(typeof(SessionAnalyzer));
     controllerContext.RegisterSessionSummaryView(typeof(SessionFilterView), "Find By User", "Find sessions associated with an application user", null);
 }
 /// <summary>
 /// Called to initialize the add in.
 /// </summary>
 public void Register(IGlobalContext context, IExtensionDefinitionContext controllerContext)
 {
     //we have to register all of our types during this call or they won't be used at all.
     controllerContext.RegisterSessionAnalyzer(typeof(SessionAnalyzer));
     controllerContext.RegisterSessionCommand(typeof(SessionAnalyzer));
     controllerContext.RegisterSessionSummaryView(typeof(SessionFilterView), "Find By User", "Find sessions associated with an application user", null);
 }
 public void Register(IGlobalContext context, IExtensionDefinitionContext definitionContext)
 {
     definitionContext.RegisterRepositoryController(typeof(RepositoryController));
     definitionContext.RegisterRepositoryCommand(typeof(RepositoryCommand));
     definitionContext.RegisterSessionCommand(typeof(SessionAnalyzer));
     definitionContext.RegisterSessionAnalyzer(typeof(SessionAnalyzer));
     definitionContext.RegisterLogMessageCommand(typeof(AddDefectCommand));
     definitionContext.RegisterSessionSummaryView(typeof(FogBugzSummaryView), "FogBugz Case List", "Find sessions associated with FogBugz cases", null);
     definitionContext.RegisterSessionSummaryView(typeof(FogBugzLookupView), "FogBugz Lookup", "Find sessions associated with a FogBugz Case Id", null);
 }
 public void Register(IGlobalContext context, IExtensionDefinitionContext definitionContext)
 {
     definitionContext.RegisterRepositoryController(typeof(RepositoryController));
     definitionContext.RegisterRepositoryCommand(typeof(RepositoryCommand));
     definitionContext.RegisterSessionCommand(typeof(SessionAnalyzer));
     definitionContext.RegisterSessionAnalyzer(typeof(SessionAnalyzer));
     definitionContext.RegisterLogMessageCommand(typeof(AddDefectCommand));
     definitionContext.RegisterSessionSummaryView(typeof(FogBugzSummaryView), "FogBugz Case List", "Find sessions associated with FogBugz cases", null);
     definitionContext.RegisterSessionSummaryView(typeof(FogBugzLookupView), "FogBugz Lookup", "Find sessions associated with a FogBugz Case Id", null);
 }
        public void Register(IGlobalContext context, IExtensionDefinitionContext definitionContext)
        {
            //we have to register all of our types during this call or they won't be used at all.
            definitionContext.RegisterSessionAnalyzer(typeof(SessionAnalysisAddInSample));
            definitionContext.RegisterSessionCommand(typeof(SessionAnalysisAddInSample));
            definitionContext.RegisterSessionCommand(typeof(DemoAppAddInSample));
            definitionContext.RegisterLogMessageCommand(typeof(LogMessageCommandSample));
            definitionContext.RegisterGlobalCommand(typeof(GlobalCommandSample));

            //you have to provide more information for views because the user has to be able to pick them without them being created.
            definitionContext.RegisterSessionSummaryView(typeof(SessionSummaryViewAddInSample), "Session Search", "Find sessions based on their description, user, host, or command line information", null);
            definitionContext.RegisterSessionView(typeof(SessionViewAddInSample), "Exceptions", "Displays all of the exceptions in the session", null);
        }
        public void Register(IGlobalContext context, IExtensionDefinitionContext definitionContext)
        {
            //we have to register all of our types during this call or they won't be used at all.
            definitionContext.RegisterSessionAnalyzer(typeof(SessionAnalysisAddInSample));
            definitionContext.RegisterSessionCommand(typeof(SessionAnalysisAddInSample));
            definitionContext.RegisterSessionCommand(typeof(DemoAppAddInSample));
            definitionContext.RegisterLogMessageCommand(typeof(LogMessageCommandSample));
            definitionContext.RegisterGlobalCommand(typeof(GlobalCommandSample));

            //you have to provide more information for views because the user has to be able to pick them without them being created.
            definitionContext.RegisterSessionSummaryView(typeof(SessionSummaryViewAddInSample), "Session Search", "Find sessions based on their description, user, host, or command line information", null);
            definitionContext.RegisterSessionView(typeof(SessionViewAddInSample), "Exceptions", "Displays all of the exceptions in the session", null);
        }
 /// <summary>
 /// Called to register the extension.
 /// </summary>
 /// <param name="context">A standard interface to the hosting environment for the Extension, provided to all the different extensions that get loaded.</param><param name="definitionContext">Used to register the various types used by the extension.</param>
 /// <remarks>
 /// <para>
 /// If any exception is thrown during this call this Extension will not be loaded.
 /// </para>
 /// <para>
 /// Register each of the other extension types that should be available to end users through appropriate calls to
 ///             the definitionContext.  These objects will be created and initialized as required and provided the same IExtensionContext object instance provided to this
 ///             method to enable coordination between all of the components.
 /// </para>
 /// <para>
 /// After registration the extension definition object is unloaded and disposed.
 /// </para>
 /// </remarks>
 public void Register(IGlobalContext context, IExtensionDefinitionContext definitionContext)
 {
     //we have to register all of our types during this call or they won't be used at all.
     definitionContext.RegisterSessionAnalyzer(typeof(SessionExporter));
     definitionContext.RegisterSessionCommand(typeof(SessionExporter));
 }
Beispiel #8
0
 /// <summary>
 /// Called to register the extension.
 /// </summary>
 /// <param name="context">A standard interface to the hosting environment for the Extension, provided to all the different extensions that get loaded.</param><param name="definitionContext">Used to register the various types used by the extension.</param>
 /// <remarks>
 /// <para>
 /// If any exception is thrown during this call this Extension will not be loaded.
 /// </para>
 /// <para>
 /// Register each of the other extension types that should be available to end users through appropriate calls to
 ///             the definitionContext.  These objects will be created and initialized as required and provided the same IExtensionContext object instance provided to this
 ///             method to enable coordination between all of the components.
 /// </para>
 /// <para>
 /// After registration the extension definition object is unloaded and disposed.
 /// </para>
 /// </remarks>
 public void Register(IGlobalContext context, IExtensionDefinitionContext definitionContext)
 {
     //we have to register all of our types during this call or they won't be used at all.
     definitionContext.RegisterSessionAnalyzer(typeof(SessionExporter));
     definitionContext.RegisterSessionCommand(typeof(SessionExporter));
 }