/// <param name='operations'>
 /// Reference to the BoomTax.Api.SampleProject.IForm1095COperations.
 /// </param>
 /// <param name='id'>
 /// Required.
 /// </param>
 public static string Delete(this IForm1095COperations operations, int id)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IForm1095COperations)s).DeleteAsync(id);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <param name='operations'>
 /// Reference to the BoomTax.Api.SampleProject.IForm1095COperations.
 /// </param>
 /// <param name='filingId'>
 /// Required.
 /// </param>
 /// <param name='form1095C'>
 /// Required.
 /// </param>
 public static int Post(this IForm1095COperations operations, int filingId, Form1095C form1095C)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IForm1095COperations)s).PostAsync(filingId, form1095C);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the BoomTaxApi class.
 /// </summary>
 /// <param name='handlers'>
 /// Optional. The set of delegating handlers to insert in the http
 /// client pipeline.
 /// </param>
 public BoomTaxApi(params DelegatingHandler[] handlers)
     : base(handlers)
 {
     this._efileRequest  = new EfileRequestOperations(this);
     this._efileResponse = new EfileResponseOperations(this);
     this._filing        = new FilingOperations(this);
     this._filingType    = new FilingTypeOperations(this);
     this._form1094C     = new Form1094COperations(this);
     this._form1095C     = new Form1095COperations(this);
     this._baseUri       = new Uri("http://api.boomtax.com");
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the BoomTaxApi class.
 /// </summary>
 public BoomTaxApi()
     : base()
 {
     this._efileRequest  = new EfileRequestOperations(this);
     this._efileResponse = new EfileResponseOperations(this);
     this._filing        = new FilingOperations(this);
     this._filingType    = new FilingTypeOperations(this);
     this._form1094C     = new Form1094COperations(this);
     this._form1095C     = new Form1095COperations(this);
     this._baseUri       = new Uri("http://api.boomtax.com");
 }
        /// <param name='operations'>
        /// Reference to the BoomTax.Api.SampleProject.IForm1095COperations.
        /// </param>
        /// <param name='id'>
        /// Required.
        /// </param>
        /// <param name='cancellationToken'>
        /// Cancellation token.
        /// </param>
        public static async Task <Form1095C> GetAsync(this IForm1095COperations operations, int id, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Microsoft.Rest.HttpOperationResponse <BoomTax.Api.SampleProject.Models.Form1095C> result = await operations.GetWithOperationResponseAsync(id, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }
        /// <param name='operations'>
        /// Reference to the BoomTax.Api.SampleProject.IForm1095COperations.
        /// </param>
        /// <param name='id'>
        /// Required.
        /// </param>
        /// <param name='cancellationToken'>
        /// Cancellation token.
        /// </param>
        public static async Task <string> DeleteAsync(this IForm1095COperations operations, int id, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Microsoft.Rest.HttpOperationResponse <string> result = await operations.DeleteWithOperationResponseAsync(id, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }
        /// <param name='operations'>
        /// Reference to the BoomTax.Api.SampleProject.IForm1095COperations.
        /// </param>
        /// <param name='filingId'>
        /// Required.
        /// </param>
        /// <param name='form1095C'>
        /// Required.
        /// </param>
        /// <param name='cancellationToken'>
        /// Cancellation token.
        /// </param>
        public static async Task <int> PostAsync(this IForm1095COperations operations, int filingId, Form1095C form1095C, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Microsoft.Rest.HttpOperationResponse <int> result = await operations.PostWithOperationResponseAsync(filingId, form1095C, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }