index > Visual Studio Guidance Automation Toolkit > Slow Wizard Input using MonitorArgument

Slow Wizard Input using MonitorArgument

I have 6 arguments. The first is the only one shown in the wizard. The remaining 5 use MonitorArgument and the Evaluator (ExpressionEvaluatorValueProvider).

The input in the wizard is very slow taking a second or two after each character typed. is there a faster implementation of Evaluator or a better ValueProvider to use for simple string formatting?

Here are the specifics:

<Argument Name="ViewName" Required="true">
<Converter Type="Microsoft.Practices.GuidanceAutomation.SmartClient.Converters.TypeNameValidator, SmartClientDevelopment"/>
</Argument>
<Argument Name="ViewTargetFile">
<ValueProvider Type="Evaluator" Expression="$(ViewName)View.cs">
<MonitorArgument Name="ViewName" />
</ValueProvider>
</Argument>
<Argument Name="ViewDesignerTargetFile">
<ValueProvider Type="Evaluator" Expression="$(ViewName)View.Designer.cs">
<MonitorArgument Name="ViewName" />
</ValueProvider>
</Argument>
<Argument Name="ViewInterfaceTargetFile">
<ValueProvider Type="Evaluator" Expression="$(ViewName)ViewInterface.cs">
<MonitorArgument Name="ViewName" />
</ValueProvider>
</Argument>
<Argument Name="ViewPresenterTargetFile">
<ValueProvider Type="Evaluator" Expression="$(ViewName)Presenter.cs">
<MonitorArgument Name="ViewName" />
</ValueProvider>
</Argument>
<Argument Name="WorkItemControllerTargetFile">
<ValueProvider Type="Evaluator" Expression="$(ViewName)WorkItemController.cs">
<MonitorArgument Name="ViewName" />
</ValueProvider>
</Argument>

<GatheringServiceData>
<Wizard xmlns="http://schemas.microsoft.com/pag/gax-wizards" SchemaVersion="1.0">
<Pages>
<Page>
<Title>Adds a new View</Title>
<Fields>
<Field ValueName="ViewName" Label="View Name:" InvalidValueMessage="Invalid name"/>
</Fields>
</Page>
</Pages>
</Wizard>
</GatheringServiceData>

rmtuckerphx
The expression evaluator value provider can accept a configuration attribute specifying when it should run. In your case, instead of using monitoring, you can have the expressions be evaluated just before actions execute (you don't need to refresh the values for a wizard, for example) and that would significantly improve the performance. The configuration elemements would look like the following:

<Argument Name="ViewDesignerTargetFile">
<ValueProvider Type="Evaluator"
Expression="$(ViewName)View.Designer.cs"
kzu

That worked. Thanks for the clarification. I had tried the Stage="OnBeforeActions" but didn't realize that I then didn't need the MonitorArgument. Makes sense now.

rmtuckerphx
reply 3

You can use google to search for other answers

 

More Articles

• CodeDom -Error when Run Recipe
• Tom, I see what has been keeping you busy post the E.L.
• How do you pass arguments from previous wizard pages
• Exception thrown on Register SCSF
• Use AddEntity recipe form HoL on existing porjects
• Error installing GAX
• GAT is VS Solution Centric
• make wizard check in file after automated edit
• Update guidance already installed
• Code samples anywhere ?
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Can't Drag Controls onto CustomWizPages
• NotImplementedException on OnComponentCh
• Build path
• Support for Web Application Project
• Extending Designer Toolbox
• Project reference problem
• System.Collections.Generic.KeyNotFoundEx
• Exception thrown on Register SCSF
• Cannot download June CTP GAX or GAT - do
• Unable to install GAX June CTP - States
• ProjectReference
• Create New Project Hangs
• Slow Wizard Input using MonitorArgument
• How can you use T3 templates in VS templ
• how to add website project

Hot Articles

• T4 templates editor?
• Cannot download June CTP GAX or GAT - do
• Not able to create a new Guidance Packag
• HoLPackage Registration menu disappear
• System.Collections.Generic.KeyNotFoundEx
• Access Denied (On Windows XP SP2)
• Error install GAX
• Extending Designer Toolbox
• TechEd Hands On Lab 2005 - Exercise 2 -
• make wizard check in file after automate
• Build Event programatically - set post b
• How to execute actions after solution te
• Is GAT/GAX compatible with non-English v
• Uninstalling Missing Packages
• Issue passing input parameters to actions

Recommend Articles

• Loading solution verty slow
• Problem adding reference to CSharp proje
• Converting IDTWizard to GAT project and
• June GAT Installation Issues
• Will we see an updated GAT Toolkit soon?
• How to Add Fixed Assets in GAT?
• Code samples anywhere ?
• Examining the items in a solution
• Project templates do not appear in VS 20
• configured attribute T3 - no property o
• warnings when I try to create guidance p
• Nested Solution Folder Parent?
• Input arguments for wizards
• Creating projects in a subdirectory
• Trying to add a new class to the Referen