/// <param name='operations'>
 /// Reference to the Rg.ClientApp.IInvitations.
 /// </param>
 /// <param name='request'>
 /// Required.
 /// </param>
 public static InvitationsIssued PostAsyncByRequest(this IInvitations operations, InvitationRequest request)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IInvitations)s).PostAsyncByRequestAsync(request);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
 /// <param name='operations'>
 /// Reference to the Rg.ClientApp.IInvitations.
 /// </param>
 /// <param name='request'>
 /// Required.
 /// </param>
 /// <param name='cancellationToken'>
 /// Cancellation token.
 /// </param>
 public static async Task<InvitationsIssued> PostAsyncByRequestAsync(this IInvitations operations, InvitationRequest request, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     Microsoft.Rest.HttpOperationResponse<Rg.ClientApp.Models.InvitationsIssued> result = await operations.PostAsyncByRequestWithOperationResponseAsync(request, cancellationToken).ConfigureAwait(false);
     return result.Body;
 }