コード例 #1
0
        /// <summary>
        /// Register a new connector
        /// </summary>
        /// <exception cref="Com.Cosmotech.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="connector">the Connector to register</param>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of Connector</returns>
        public async System.Threading.Tasks.Task <Connector> RegisterConnectorAsync(Connector connector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Com.Cosmotech.Client.ApiResponse <Connector> localVarResponse = await RegisterConnectorWithHttpInfoAsync(connector, cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
コード例 #2
0
 /// <summary>
 /// Register a new connector
 /// </summary>
 /// <exception cref="Com.Cosmotech.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="connector">the Connector to register</param>
 /// <returns>Connector</returns>
 public Connector RegisterConnector(Connector connector)
 {
     Com.Cosmotech.Client.ApiResponse <Connector> localVarResponse = RegisterConnectorWithHttpInfo(connector);
     return(localVarResponse.Data);
 }
コード例 #3
0
        /// <summary>
        /// Get the details of a connector
        /// </summary>
        /// <exception cref="Com.Cosmotech.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="connectorId">the Connector identifier</param>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of Connector</returns>
        public async System.Threading.Tasks.Task <Connector> FindConnectorByIdAsync(string connectorId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Com.Cosmotech.Client.ApiResponse <Connector> localVarResponse = await FindConnectorByIdWithHttpInfoAsync(connectorId, cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
コード例 #4
0
 /// <summary>
 /// Get the details of a connector
 /// </summary>
 /// <exception cref="Com.Cosmotech.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="connectorId">the Connector identifier</param>
 /// <returns>Connector</returns>
 public Connector FindConnectorById(string connectorId)
 {
     Com.Cosmotech.Client.ApiResponse <Connector> localVarResponse = FindConnectorByIdWithHttpInfo(connectorId);
     return(localVarResponse.Data);
 }
コード例 #5
0
        /// <summary>
        /// List all Connectors
        /// </summary>
        /// <exception cref="Com.Cosmotech.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of List&lt;Connector&gt;</returns>
        public async System.Threading.Tasks.Task <List <Connector> > FindAllConnectorsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Com.Cosmotech.Client.ApiResponse <List <Connector> > localVarResponse = await FindAllConnectorsWithHttpInfoAsync(cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
コード例 #6
0
 /// <summary>
 /// List all Connectors
 /// </summary>
 /// <exception cref="Com.Cosmotech.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>List&lt;Connector&gt;</returns>
 public List <Connector> FindAllConnectors()
 {
     Com.Cosmotech.Client.ApiResponse <List <Connector> > localVarResponse = FindAllConnectorsWithHttpInfo();
     return(localVarResponse.Data);
 }