コード例 #1
0
 public GetServiceSettingsResponse GetServiceSettings(GetServiceSettingsRequest request)
 {
     return(new GetServiceSettingsResponse
     {
         Settings = new Settings(serviceInstance.SettingsProvider),
     });
 }
コード例 #2
0
        internal virtual GetServiceSettingsResponse GetServiceSettings(GetServiceSettingsRequest request)
        {
            var marshaller   = GetServiceSettingsRequestMarshaller.Instance;
            var unmarshaller = GetServiceSettingsResponseUnmarshaller.Instance;

            return(Invoke <GetServiceSettingsRequest, GetServiceSettingsResponse>(request, marshaller, unmarshaller));
        }
コード例 #3
0
        /// <summary>
        /// Initiates the asynchronous execution of the GetServiceSettings operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the GetServiceSettings operation.</param>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        /// <returns>The task object representing the asynchronous operation.</returns>
        /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetServiceSettings">REST API Reference for GetServiceSettings Operation</seealso>
        public virtual Task <GetServiceSettingsResponse> GetServiceSettingsAsync(GetServiceSettingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = GetServiceSettingsRequestMarshaller.Instance;
            var unmarshaller = GetServiceSettingsResponseUnmarshaller.Instance;

            return(InvokeAsync <GetServiceSettingsRequest, GetServiceSettingsResponse>(request, marshaller,
                                                                                       unmarshaller, cancellationToken));
        }
コード例 #4
0
        /// <summary>
        /// Initiates the asynchronous execution of the GetServiceSettings operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the GetServiceSettings operation.</param>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        /// <returns>The task object representing the asynchronous operation.</returns>
        /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetServiceSettings">REST API Reference for GetServiceSettings Operation</seealso>
        public virtual Task <GetServiceSettingsResponse> GetServiceSettingsAsync(GetServiceSettingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = GetServiceSettingsRequestMarshaller.Instance;
            options.ResponseUnmarshaller = GetServiceSettingsResponseUnmarshaller.Instance;

            return(InvokeAsync <GetServiceSettingsResponse>(request, options, cancellationToken));
        }
コード例 #5
0
        internal virtual GetServiceSettingsResponse GetServiceSettings(GetServiceSettingsRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = GetServiceSettingsRequestMarshaller.Instance;
            options.ResponseUnmarshaller = GetServiceSettingsResponseUnmarshaller.Instance;

            return(Invoke <GetServiceSettingsResponse>(request, options));
        }