Example #1
0
 /// <param name='operations'>
 /// Reference to the BoomTax.Api.SampleProject.IForm1094COperations.
 /// </param>
 /// <param name='filingId'>
 /// Required.
 /// </param>
 /// <param name='form1094C'>
 /// Required.
 /// </param>
 public static int Post(this IForm1094COperations operations, int filingId, Form1094C form1094C)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IForm1094COperations)s).PostAsync(filingId, form1094C);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Example #2
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");
 }
Example #3
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");
 }
Example #4
0
        /// <param name='operations'>
        /// Reference to the BoomTax.Api.SampleProject.IForm1094COperations.
        /// </param>
        /// <param name='filingId'>
        /// Required.
        /// </param>
        /// <param name='form1094C'>
        /// Required.
        /// </param>
        /// <param name='cancellationToken'>
        /// Cancellation token.
        /// </param>
        public static async Task <int> PostAsync(this IForm1094COperations operations, int filingId, Form1094C form1094C, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Microsoft.Rest.HttpOperationResponse <int> result = await operations.PostWithOperationResponseAsync(filingId, form1094C, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }
Example #5
0
        /// <param name='operations'>
        /// Reference to the BoomTax.Api.SampleProject.IForm1094COperations.
        /// </param>
        /// <param name='id'>
        /// Required.
        /// </param>
        /// <param name='cancellationToken'>
        /// Cancellation token.
        /// </param>
        public static async Task <Form1094C> GetAsync(this IForm1094COperations operations, int id, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Microsoft.Rest.HttpOperationResponse <BoomTax.Api.SampleProject.Models.Form1094C> result = await operations.GetWithOperationResponseAsync(id, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }