示例#1
0
        private SetRouteParameters CreateParameters(string routeName, string addressPrefix, string nextHopType)
        {
            NextHop nextHop = new NextHop()
            {
                Type = nextHopType,
            };

            return(CreateParameters(routeName, addressPrefix, nextHop));
        }
示例#2
0
        public AzureOperationResponse SetRoute(string routeTableName, string routeName, string addressPrefix, string nextHopType)
        {
            NextHop nextHop = new NextHop()
            {
                Type = nextHopType,
            };
            SetRouteParameters parameters = new SetRouteParameters()
            {
                Name          = routeName,
                AddressPrefix = addressPrefix,
                NextHop       = nextHop,
            };

            return(client.Routes.SetRoute(routeTableName, routeName, parameters));
        }
示例#3
0
 private SetRouteParameters CreateParameters(string routeName, string addressPrefix, NextHop nextHop)
 {
     return(new SetRouteParameters()
     {
         Name = routeName,
         AddressPrefix = addressPrefix,
         NextHop = nextHop,
     });
 }