/// <summary>
 /// The Get Dedicated Circuit Stats operation retrieves the
 /// bytesin/bytesout of the dedicated circuit on primary/secondary
 /// devices for specified peering type.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ExpressRoute.IDedicatedCircuitPeeringStatsOperations.
 /// </param>
 /// <param name='serviceKey'>
 /// Required. The service key representing the circuit.
 /// </param>
 /// <param name='accessType'>
 /// Required. Whether the peering is private or public or microsoft.
 /// </param>
 /// <returns>
 /// The Get DedicatedCircuitPeeringStats operation response.
 /// </returns>
 public static DedicatedCircuitPeeringStatsGetResponse Get(this IDedicatedCircuitPeeringStatsOperations operations, string serviceKey, BgpPeeringAccessType accessType)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IDedicatedCircuitPeeringStatsOperations)s).GetAsync(serviceKey, accessType);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// The Get Dedicated Circuit Stats operation retrieves the
 /// bytesin/bytesout of the dedicated circuit on primary/secondary
 /// devices for specified peering type.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ExpressRoute.IDedicatedCircuitPeeringStatsOperations.
 /// </param>
 /// <param name='serviceKey'>
 /// Required. The service key representing the circuit.
 /// </param>
 /// <param name='accessType'>
 /// Required. Whether the peering is private or public or microsoft.
 /// </param>
 /// <returns>
 /// The Get DedicatedCircuitPeeringStats operation response.
 /// </returns>
 public static Task <DedicatedCircuitPeeringStatsGetResponse> GetAsync(this IDedicatedCircuitPeeringStatsOperations operations, string serviceKey, BgpPeeringAccessType accessType)
 {
     return(operations.GetAsync(serviceKey, accessType, CancellationToken.None));
 }