/// <summary> /// Implements the Dispose pattern /// </summary> /// <param name="disposing">Whether this object is being disposed via a call to Dispose /// or garbage collected.</param> protected virtual void Dispose(bool disposing) { if (!isDisposed) { if (disposing && client != null && shouldDispose) { client.Dispose(); client = null; } isDisposed = true; } }
/// <summary> /// Implements the Dispose pattern /// </summary> /// <param name="disposing">Whether this object is being disposed via a call to Dispose /// or garbage collected.</param> protected virtual void Dispose(bool disposing) { if (!isDisposed) { if (disposing && client != null && shouldDispose) { client.Dispose(); client = null; } isDisposed = true; } }
private Amazon.MachineLearning.Model.AddTagsResponse CallAWSServiceOperation(IAmazonMachineLearning client, Amazon.MachineLearning.Model.AddTagsRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Machine Learning", "AddTags"); try { #if DESKTOP return(client.AddTags(request)); #elif CORECLR return(client.AddTagsAsync(request).GetAwaiter().GetResult()); #else #error "Unknown build edition" #endif } catch (AmazonServiceException exc) { var webException = exc.InnerException as System.Net.WebException; if (webException != null) { throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException); } throw; } }
internal DescribeDataSourcesPaginator(IAmazonMachineLearning client, DescribeDataSourcesRequest request) { this._client = client; this._request = request; }
/// <summary> /// Constructs a RealtimePredictor which will use the passed in client to make requests. /// </summary> /// <param name="client">The MachineLearning client that will be used to make requests.</param> /// <param name="modelId">The MachineLearning model to predict against.</param> /// <param name="endpoint">The endpoint to send requests to.</param> public RealtimePredictor(IAmazonMachineLearning client, string modelId, string endpoint) { this.client = client; this.ModelId = modelId; this.endpoint = endpoint; }
/// <summary> /// Constructs a RealtimePredictor which will use the passed in client to make requests. /// </summary> /// <remarks> /// The endpoint URL will be determined my making a service call to retrieve it. /// </remarks> /// <param name="client">The MachineLearning client that will be used to make requests.</param> /// <param name="modelId">The MachineLearning model to predict against.</param> public RealtimePredictor(IAmazonMachineLearning client, string modelId) { this.client = client; this.ModelId = modelId; }
internal MachineLearningPaginatorFactory(IAmazonMachineLearning client) { this.client = client; }
internal DescribeMLModelsPaginator(IAmazonMachineLearning client, DescribeMLModelsRequest request) { this._client = client; this._request = request; }
internal DescribeEvaluationsPaginator(IAmazonMachineLearning client, DescribeEvaluationsRequest request) { this._client = client; this._request = request; }
/// <summary> /// Constructs a RealtimePredictor which will use the passed in client to make requests. /// </summary> /// <param name="client">The MachineLearning client that will be used to make requests.</param> /// <param name="modelId">The MachineLearning model to predict against.</param> /// <param name="endpoint">The endpoint to send requests to.</param> public RealtimePredictor(IAmazonMachineLearning client, string modelId, string endpoint) { this.client = client; this.ModelId = modelId; this.endpoint = endpoint; }
/// <summary> /// Constructs a RealtimePredictor which will use the passed in client to make requests. /// </summary> /// <remarks> /// The endpoint URL will be determined my making a service call to retrieve it. /// </remarks> /// <param name="client">The MachineLearning client that will be used to make requests.</param> /// <param name="modelId">The MachineLearning model to predict against.</param> public RealtimePredictor(IAmazonMachineLearning client, string modelId) { this.client = client; this.ModelId = modelId; }
protected override void ProcessRecord() { base.ProcessRecord(); Client = CreateClient(_CurrentCredentials, _RegionEndpoint); }