Ejemplo n.º 1
0
 /// <param name='operations'>
 /// Reference to the BoomTax.Api.SampleProject.IFilingTypeOperations.
 /// </param>
 public static IList <FilingType> GetFilingTypes(this IFilingTypeOperations operations)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IFilingTypeOperations)s).GetFilingTypesAsync();
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 4
0
        /// <param name='operations'>
        /// Reference to the BoomTax.Api.SampleProject.IFilingTypeOperations.
        /// </param>
        /// <param name='cancellationToken'>
        /// Cancellation token.
        /// </param>
        public static async Task <IList <FilingType> > GetFilingTypesAsync(this IFilingTypeOperations operations, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Microsoft.Rest.HttpOperationResponse <System.Collections.Generic.IList <BoomTax.Api.SampleProject.Models.FilingType> > result = await operations.GetFilingTypesWithOperationResponseAsync(cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }