Beispiel #1
0
 /// <summary>Creates the module instance.</summary>
 private Module()
 {
     /// constructor
     ClientAPI          = new Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.AppConfiguration();
     _handler.Proxy     = _webProxy;
     _pipeline          = new Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.HttpPipeline(new Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.HttpClientFactory(new System.Net.Http.HttpClient()));
     _pipelineWithProxy = new Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.HttpPipeline(new Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.HttpClientFactory(new System.Net.Http.HttpClient(_handler)));
 }
Beispiel #2
0
 /// <summary>Creates an instance of the HttpPipeline for each call.</summary>
 /// <param name="invocationInfo">The <see cref="System.Management.Automation.InvocationInfo" /> from the cmdlet</param>
 /// <param name="correlationId">the cmdlet's correlation id.</param>
 /// <param name="processRecordId">the cmdlet's process record correlation id.</param>
 /// <returns>An instance of Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.HttpPipeline for the remote call.</returns>
 public Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.HttpPipeline CreatePipeline(System.Management.Automation.InvocationInfo invocationInfo, string correlationId, string processRecordId)
 {
     Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.HttpPipeline pipeline = null;
     BeforeCreatePipeline(invocationInfo, ref pipeline);
     pipeline = (pipeline ?? (_handler.UseProxy ? _pipelineWithProxy : _pipeline)).Clone();
     AfterCreatePipeline(invocationInfo, ref pipeline);
     OnNewRequest?.Invoke(invocationInfo, correlationId, processRecordId, (step) => { pipeline.Prepend(step); }, (step) => { pipeline.Append(step); });
     return(pipeline);
 }
Beispiel #3
0
 /// <summary>Creates an instance of the HttpPipeline for each call.</summary>
 /// <param name="invocationInfo">The <see cref="System.Management.Automation.InvocationInfo" /> from the cmdlet</param>
 /// <param name="correlationId">the cmdlet's correlation id.</param>
 /// <param name="processRecordId">the cmdlet's process record correlation id.</param>
 /// <param name="parameterSetName">the cmdlet's parameterset name.</param>
 /// <param name="extensibleParameters">a dict for extensible parameters</param>
 /// <returns>An instance of Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.HttpPipeline for the remote call.</returns>
 public Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.HttpPipeline CreatePipeline(global::System.Management.Automation.InvocationInfo invocationInfo, string correlationId, string processRecordId, string parameterSetName = null, global::System.Collections.Generic.IDictionary <string, object> extensibleParameters = null)
 {
     Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.HttpPipeline pipeline = null;
     BeforeCreatePipeline(invocationInfo, ref pipeline);
     pipeline = (pipeline ?? (_useProxy ? _pipelineWithProxy : _pipeline)).Clone();
     AfterCreatePipeline(invocationInfo, ref pipeline);
     pipeline.Append(new Runtime.CmdInfoHandler(processRecordId, invocationInfo, parameterSetName).SendAsync);
     OnNewRequest?.Invoke(invocationInfo, correlationId, processRecordId, (step) => { pipeline.Prepend(step); }, (step) => { pipeline.Append(step); });
     return(pipeline);
 }
Beispiel #4
0
 /// <summary>FIXME: Method BeforeCreatePipeline is MISSING DESCRIPTION</summary>
 /// <param name="invocationInfo">The <see cref="System.Management.Automation.InvocationInfo" /> from the cmdlet</param>
 /// <param name="pipeline">The HttpPipeline for the request</param>
 partial void BeforeCreatePipeline(System.Management.Automation.InvocationInfo invocationInfo, ref Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.HttpPipeline pipeline);