/// <param name='operations'>
 /// Reference to the BoomTax.Api.SampleProject.IEfileRequestOperations.
 /// </param>
 /// <param name='filingId'>
 /// Required.
 /// </param>
 /// <param name='emails'>
 /// Required.
 /// </param>
 /// <param name='isSilent'>
 /// Required.
 /// </param>
 public static IList <int> Post(this IEfileRequestOperations operations, int filingId, string emails, bool isSilent)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IEfileRequestOperations)s).PostAsync(filingId, emails, isSilent);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <param name='operations'>
 /// Reference to the BoomTax.Api.SampleProject.IEfileRequestOperations.
 /// </param>
 /// <param name='filingId'>
 /// Required.
 /// </param>
 public static IList <EfileRequest> GetEfileRequests(this IEfileRequestOperations operations, int filingId)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IEfileRequestOperations)s).GetEfileRequestsAsync(filingId);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Example #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");
 }
Example #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.IEfileRequestOperations.
        /// </param>
        /// <param name='filingId'>
        /// Required.
        /// </param>
        /// <param name='cancellationToken'>
        /// Cancellation token.
        /// </param>
        public static async Task <IList <EfileRequest> > GetEfileRequestsAsync(this IEfileRequestOperations operations, int filingId, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Microsoft.Rest.HttpOperationResponse <System.Collections.Generic.IList <BoomTax.Api.SampleProject.Models.EfileRequest> > result = await operations.GetEfileRequestsWithOperationResponseAsync(filingId, cancellationToken).ConfigureAwait(false);

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

            return(result.Body);
        }