96 writes to InputType
Aspire.Hosting (4)
ApplicationModel\ParameterResource.cs (1)
142
InputType
= Secret ? InputType.SecretText : InputType.Text,
InteractionService.cs (1)
108
return await PromptInputAsync(title, message, new InteractionInput { Name = InteractionHelpers.LabelToName(inputLabel),
InputType
= InputType.Text, Label = inputLabel, Required = true, Placeholder = placeHolder }, options, cancellationToken).ConfigureAwait(false);
Orchestrator\ParameterProcessor.cs (2)
311
InputType
= InputType.Boolean,
350
InputType
= InputType.Boolean,
Aspire.Hosting.Azure (10)
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (6)
162
InputType
= InputType.Choice,
188
InputType
= InputType.SecretText,
261
InputType
= InputType.Choice,
287
InputType
= InputType.SecretText,
355
InputType
= InputType.Choice,
453
InputType
= InputType.Choice,
Provisioning\Internal\RunModeProvisioningContextProvider.cs (4)
134
InputType
= InputType.Choice,
185
InputType
= inputType,
199
InputType
= InputType.Choice,
236
InputType
= InputType.Choice,
Aspire.Hosting.Azure.Tests (1)
AzureDeployerTests.cs (1)
635
InputType
= InputType.Number,
Aspire.Hosting.Tests (47)
AddParameterTests.cs (3)
384
InputType
= InputType.Number,
443
InputType
= InputType.Number,
488
InputType
= InputType.Number,
Dashboard\DashboardServiceTests.cs (2)
321
new Aspire.Hosting.InteractionInput { Name = "Input",
InputType
= Aspire.Hosting.InputType.Text });
368
new Aspire.Hosting.InteractionInput { Name = "Input",
InputType
= Aspire.Hosting.InputType.Text, Label = "Input" });
InteractionServiceTests.cs (42)
279
var input = new InteractionInput { Name = "Value", Label = "Value",
InputType
= InputType.Text, };
316
var input = new InteractionInput { Name = "Value", Label = "Value",
InputType
= InputType.Text, Required = true };
339
var input = new InteractionInput { Name = "Value", Label = "Value",
InputType
= InputType.Choice, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
362
var input = new InteractionInput { Name = "Value", Label = "Value",
InputType
= InputType.Choice, AllowCustomChoice = true, Options = [KeyValuePair.Create("first", "First option!"), KeyValuePair.Create("second", "Second option!")] };
383
var input = new InteractionInput { Name = "Value", Label = "Value",
InputType
= InputType.Number };
406
var input = new InteractionInput { Name = "Value", Label = "Value",
InputType
= InputType.Boolean };
439
var input = new InteractionInput { Name = "Value", Label = "Value",
InputType
= inputType, MaxLength = maxLength };
475
InputType
= InputType.Text,
495
InputType
= InputType.Text,
513
InputType
= InputType.Text,
548
InputType
= InputType.Text,
560
new InteractionInput { Name = "Username", Label = "Username",
InputType
= InputType.Text },
561
new InteractionInput { Name = "Password", Label = "Password",
InputType
= InputType.SecretText },
562
new InteractionInput { Name = "RememberMe", Label = "Remember Me",
InputType
= InputType.Boolean }
600
new InteractionInput { Name = "UserName", Label = "User Name",
InputType
= InputType.Text },
601
new InteractionInput { Name = "EmailAddress", Label = "Email Address",
InputType
= InputType.Text },
602
new InteractionInput { Name = "Age",
InputType
= InputType.Number }
634
new InteractionInput { Name = "ExplicitName", Label = "Explicit",
InputType
= InputType.Text },
635
new InteractionInput { Name = "GeneratedLabel", Label = "Generated Label",
InputType
= InputType.Text },
636
new InteractionInput { Name = "AnotherExplicit", Label = "Another",
InputType
= InputType.Text }
657
new InteractionInput { Name = "Duplicate", Label = "First",
InputType
= InputType.Text },
658
new InteractionInput { Name = "Duplicate", Label = "Second",
InputType
= InputType.Text }
672
new InteractionInput { Name = "Username", Label = "First",
InputType
= InputType.Text },
673
new InteractionInput { Name = "USERNAME", Label = "Second",
InputType
= InputType.Text }
687
new InteractionInput { Name = "Input1",
InputType
= InputType.Text },
688
new InteractionInput { Name = "Input2",
InputType
= InputType.Text },
689
new InteractionInput { Name = "Input3",
InputType
= InputType.Text }
720
new InteractionInput { Name = "SpecialInput", Label = "!@#$%^&*()",
InputType
= InputType.Text },
721
new InteractionInput { Name = "EmptyLabel", Label = "",
InputType
= InputType.Text },
722
new InteractionInput { Name = "WhitespaceLabel", Label = " ",
InputType
= InputType.Text }
757
new InteractionInput { Name = "Valid", Label = "Valid",
InputType
= InputType.Text }
773
new InteractionInput { Name = "Username", Label = "Username",
InputType
= InputType.Text },
774
new InteractionInput { Name = "Password", Label = "Password",
InputType
= InputType.SecretText }
830
InputType
= InputType.Choice,
880
new InteractionInput { Name = "Username", Label = "Username",
InputType
= InputType.Text },
884
InputType
= InputType.Choice,
935
new InteractionInput { Name = "Email", Label = "Email",
InputType
= InputType.Text, Required = true },
936
new InteractionInput { Name = "Age", Label = "Age",
InputType
= InputType.Number, Required = true }
991
InputType
= InputType.Choice,
1003
new InteractionInput { Name = "Age", Label = "Age",
InputType
= InputType.Number, Required = true }
1024
InputType
= InputType.Choice,
1036
new InteractionInput { Name = "Age", Label = "Age",
InputType
= InputType.Number, Required = true }
ExternalServices.AppHost (1)
AppHost.cs (1)
14
InputType
= InputType.Text,
ParameterEndToEnd.AppHost (1)
AppHost.cs (1)
49
InputType
= InputType.Number,
Publishers.AppHost (10)
DistributedApplicationBuilderExtensions.cs (10)
51
InputType
= InputType.Text,
59
InputType
= InputType.Text,
67
InputType
= InputType.Choice,
80
InputType
= InputType.Choice,
135
InputType
= InputType.Text,
158
InputType
= InputType.SecretText,
173
InputType
= InputType.Choice,
194
InputType
= InputType.Boolean,
208
InputType
= InputType.Number,
223
InputType
= InputType.Choice,
Stress.AppHost (22)
InteractionCommands.cs (22)
58
var inputNoMarkdown = new InteractionInput { Name = "Name", Label = "<strong>Name</strong>",
InputType
= InputType.Text, Placeholder = "Enter <strong>your</strong> name.", Description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id massa arcu. Morbi ac risus eget augue venenatis hendrerit. Morbi posuere, neque id efficitur ultrices, velit augue suscipit ante, vitae lacinia elit risus nec dui.\r\n\r\nFor more information about the `IInteractionService`, see https://learn.microsoft.com." };
59
var inputHasMarkdown = new InteractionInput { Name = "Name", Label = "<strong>Name</strong>",
InputType
= InputType.Text, Placeholder = "Enter <strong>your</strong> name.", Description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id massa arcu. Morbi ac risus eget augue venenatis hendrerit. Morbi posuere, neque id efficitur ultrices, velit augue suscipit ante, vitae lacinia elit risus nec dui.\r\n\r\nFor more information about the `IInteractionService`, see https://learn.microsoft.com.", EnableDescriptionMarkdown = true };
71
var inputHasMarkdown = new InteractionInput { Name = "Name", Label = "<strong>Name</strong>",
InputType
= InputType.Text, Placeholder = "Enter <strong>your</strong> name.", Description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id massa arcu. Morbi ac risus eget augue venenatis hendrerit. Morbi posuere, **neque id** efficitur ultrices, velit augue suscipit ante, vitae lacinia elit risus nec dui.", EnableDescriptionMarkdown = true };
75
InputType
= InputType.Choice,
86
InputType
= InputType.Choice,
145
InputType
= InputType.Choice,
158
InputType
= InputType.Choice,
197
InputType
= InputType.Choice,
225
InputType
= InputType.Choice,
235
var numberOfPeopleInput = new InteractionInput { Name = "NumberOfPeople",
InputType
= InputType.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true };
238
new InteractionInput { Name = "Name",
InputType
= InputType.Text, Label = "Name", Placeholder = "Enter name", Required = true, MaxLength = 50 },
239
new InteractionInput { Name = "Password",
InputType
= InputType.SecretText, Label = "Password", Placeholder = "Enter password", Required = true, MaxLength = 20 },
243
new InteractionInput { Name = "RememberMe",
InputType
= InputType.Boolean, Label = "Remember me", Placeholder = "What does this do?", Required = true },
283
InputType
= InputType.Choice,
295
InputType
= InputType.Choice,
343
InputType
= InputType.Choice,
353
InputType
= InputType.Choice,
364
InputType
= InputType.Text,
422
InputType
= InputType.Choice,
434
InputType
= InputType.Choice,
452
InputType
= InputType.Choice,
565
InputType
= InputType.Text,
37 references to InputType
Aspire.Hosting (5)
Dashboard\DashboardService.cs (1)
135
InputType = MapInputType(input.
InputType
),
InteractionService.cs (2)
176
if (input.
InputType
== InputType.Choice)
394
switch (input.
InputType
)
Pipelines\PipelineActivityReporter.cs (2)
330
InputType = input.
InputType
.ToString(),
422
dtos.Add(new InputDto(matchingInput.Name, responseAnswer.Value ?? "", matchingInput.
InputType
));
Aspire.Hosting.Azure.Tests (17)
AzureDeployerTests.cs (8)
58
Assert.Equal(InputType.Choice, input.
InputType
);
75
Assert.Equal(InputType.Choice, input.
InputType
);
93
Assert.Equal(InputType.Choice, input.
InputType
);
111
Assert.Equal(InputType.Choice, input.
InputType
);
585
Assert.Equal(InputType.Text, input.
InputType
);
658
Assert.Equal(InputType.Number, input.
InputType
);
848
Assert.Equal(InputType.Text, input.
InputType
);
893
Assert.Equal(InputType.Text, input.
InputType
);
ProvisioningContextProviderTests.cs (9)
286
Assert.Equal(InputType.Choice, input.
InputType
);
293
Assert.Equal(InputType.Choice, input.
InputType
);
300
Assert.Equal(InputType.Choice, input.
InputType
);
307
Assert.Equal(InputType.Choice, input.
InputType
);
456
Assert.Equal(InputType.Text, input.
InputType
);
464
Assert.Equal(InputType.Choice, input.
InputType
);
471
Assert.Equal(InputType.Choice, input.
InputType
);
600
Assert.Equal(InputType.Choice, subscriptionInput.
InputType
);
750
Assert.Equal(InputType.Text, subscriptionInput.
InputType
);
Aspire.Hosting.Tests (15)
AddParameterTests.cs (4)
407
Assert.Equal(InputType.Text, input.
InputType
);
426
Assert.Equal(InputType.SecretText, input.
InputType
);
454
Assert.Equal(InputType.Number, input.
InputType
);
498
Assert.Equal(InputType.Number, input.
InputType
);
InteractionServiceTests.cs (1)
482
Assert.Equal(InputType.Text, input.
InputType
);
Orchestrator\ParameterProcessorTests.cs (10)
219
Assert.Equal(InputType.Text, input.
InputType
);
225
Assert.Equal(InputType.Text, input.
InputType
);
231
Assert.Equal(InputType.SecretText, input.
InputType
);
237
Assert.Equal(InputType.Boolean, input.
InputType
);
449
Assert.Equal(InputType.Text, param1Input.
InputType
);
455
Assert.Equal(InputType.Text, param2Input.
InputType
);
492
Assert.Equal(InputType.SecretText, secretInput.
InputType
);
528
Assert.Equal(InputType.Boolean, saveCheckbox.
InputType
);
567
Assert.Equal(InputType.Boolean, saveCheckbox.
InputType
);
994
Assert.Equal(InputType.SecretText, inputInteraction.Inputs["secretParam"].
InputType
);