/// <param name='operations'>
 /// Reference to the BoomTax.Api.SampleProject.IEfileResponseOperations.
 /// </param>
 /// <param name='id'>
 /// Required.
 /// </param>
 public static EfileResponse Get(this IEfileResponseOperations operations, int id)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IEfileResponseOperations)s).GetAsync(id);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
예제 #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");
 }
예제 #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");
 }
        /// <param name='operations'>
        /// Reference to the BoomTax.Api.SampleProject.IEfileResponseOperations.
        /// </param>
        /// <param name='id'>
        /// Required.
        /// </param>
        /// <param name='cancellationToken'>
        /// Cancellation token.
        /// </param>
        public static async Task <EfileResponse> GetAsync(this IEfileResponseOperations operations, int id, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Microsoft.Rest.HttpOperationResponse <BoomTax.Api.SampleProject.Models.EfileResponse> result = await operations.GetWithOperationResponseAsync(id, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }