Пример #1
0
 ///GENMHASH:171A48C3C1C3B51D4825DFBE47581089:00A3A02E83990C5035A9D728BAA7D9E2
 protected override IRouteFilter WrapModel(RouteFilterInner inner)
 {
     if (inner == null)
     {
         return(null);
     }
     return(new RouteFilterImpl(inner.Name, inner, this.Manager));
 }
 /// <summary>
 /// Creates or updates a route filter in a specified resource group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='routeFilterName'>
 /// The name of the route filter.
 /// </param>
 /// <param name='routeFilterParameters'>
 /// Parameters supplied to the create or update route filter operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <RouteFilterInner> CreateOrUpdateAsync(this IRouteFiltersOperations operations, string resourceGroupName, string routeFilterName, RouteFilterInner routeFilterParameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, routeFilterName, routeFilterParameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #3
0
        ///GENMHASH:2FE8C4C2D5EAD7E37787838DE0B47D92:C90ECB22096454819F1952D99A71D0F5
        protected override RouteFilterImpl WrapModel(string name)
        {
            RouteFilterInner inner = new RouteFilterInner();

            return(new RouteFilterImpl(name, inner, Manager));
        }