1
+ //------------------------------------------------------------------------------
2
+ // <auto-generated>
3
+ // This code was generated by a tool.
4
+ //
5
+ // Changes to this file may cause incorrect behavior and will be lost if
6
+ // the code is regenerated.
7
+ // </auto-generated>
8
+ //------------------------------------------------------------------------------
9
+ namespace CommunityToolkit . Aspire . Hosting . PowerShell
10
+ {
11
+ public static partial class DistributedApplicationBuilderExtensions
12
+ {
13
+ public static global ::Aspire . Hosting . ApplicationModel . IResourceBuilder < PowerShellRunspacePoolResource > AddPowerShell ( this global ::Aspire . Hosting . IDistributedApplicationBuilder builder , string name , System . Management . Automation . PSLanguageMode languageMode = System . Management . Automation . PSLanguageMode . ConstrainedLanguage , int minRunspaces = 1 , int maxRunspaces = 5 ) { throw null ; }
14
+ }
15
+
16
+ public partial class PowerShellRunspacePoolResource : global ::Aspire . Hosting . ApplicationModel . Resource , System . IDisposable , global ::Aspire . Hosting . ApplicationModel . IResourceWithWaitSupport , global ::Aspire . Hosting . ApplicationModel . IResource
17
+ {
18
+ public PowerShellRunspacePoolResource ( string name , System . Management . Automation . PSLanguageMode languageMode = System . Management . Automation . PSLanguageMode . ConstrainedLanguage , int minRunspaces = 1 , int maxRunspaces = 5 ) : base ( default ! ) { }
19
+
20
+ public System . Management . Automation . PSLanguageMode LanguageMode { get { throw null ; } }
21
+
22
+ public int MaxRunspaces { get { throw null ; } }
23
+
24
+ public int MinRunspaces { get { throw null ; } }
25
+
26
+ public System . Management . Automation . Runspaces . RunspacePool ? Pool { get { throw null ; } }
27
+
28
+ void System . IDisposable . Dispose ( ) { }
29
+ }
30
+
31
+ public static partial class PowerShellRunspacePoolResourceBuilderExtensions
32
+ {
33
+ public static global ::Aspire . Hosting . ApplicationModel . IResourceBuilder < PowerShellScriptResource > AddScript ( this global ::Aspire . Hosting . ApplicationModel . IResourceBuilder < PowerShellRunspacePoolResource > builder , string name , string script ) { throw null ; }
34
+
35
+ public static global ::Aspire . Hosting . ApplicationModel . IResourceBuilder < PowerShellRunspacePoolResource > WithReference ( this global ::Aspire . Hosting . ApplicationModel . IResourceBuilder < PowerShellRunspacePoolResource > builder , global ::Aspire . Hosting . ApplicationModel . IResourceBuilder < global ::Aspire . Hosting . ApplicationModel . IResourceWithConnectionString > source , string ? connectionName = null , bool optional = false ) { throw null ; }
36
+ }
37
+
38
+ public partial record PowerShellScriptArgsAnnotation ( object [ ] Args ) : global ::Aspire . Hosting . ApplicationModel . IResourceAnnotation
39
+ {
40
+ }
41
+
42
+ public partial class PowerShellScriptResource : global ::Aspire . Hosting . ApplicationModel . Resource , System . IDisposable , global ::Aspire . Hosting . ApplicationModel . IResourceWithEnvironment , global ::Aspire . Hosting . ApplicationModel . IResource , global ::Aspire . Hosting . ApplicationModel . IResourceWithWaitSupport , global ::Aspire . Hosting . ApplicationModel . IResourceWithArgs
43
+ {
44
+ public PowerShellScriptResource ( string name , System . IO . FileInfo scriptFile , PowerShellRunspacePoolResource parent ) : base ( default ! ) { }
45
+
46
+ public PowerShellScriptResource ( string name , System . Management . Automation . ScriptBlock script , PowerShellRunspacePoolResource parent ) : base ( default ! ) { }
47
+
48
+ public PowerShellRunspacePoolResource Parent { get { throw null ; } }
49
+
50
+ public System . Threading . Tasks . Task < bool > BreakAsync ( ) { throw null ; }
51
+
52
+ public System . Threading . Tasks . Task StartAsync ( Microsoft . Extensions . Logging . ILogger scriptLogger , global ::Aspire . Hosting . ApplicationModel . ResourceNotificationService notificationService , System . Threading . CancellationToken cancellationToken = default ) { throw null ; }
53
+
54
+ void System . IDisposable . Dispose ( ) { }
55
+ }
56
+
57
+ public static partial class PowerShellScriptResourceBuilderExtensions
58
+ {
59
+ public static global ::Aspire . Hosting . ApplicationModel . IResourceBuilder < PowerShellScriptResource > WithArgs ( this global ::Aspire . Hosting . ApplicationModel . IResourceBuilder < PowerShellScriptResource > builder , params object [ ] args ) { throw null ; }
60
+ }
61
+
62
+ public partial record PowerShellVariableReferenceAnnotation < T > ( string Name , T Value ) : global ::Aspire . Hosting . ApplicationModel . IResourceAnnotation , System . IEquatable < PowerShellVariableReferenceAnnotation < T > >
63
+ {
64
+ }
65
+ }
0 commit comments