AspNet.Mvc.TypedRouting.LinkGeneration.UniqueRouteKeysProvider.AddKey C# (CSharp) Method

AddKey() private method

private AddKey ( string key ) : void
key string
return void
        internal void AddKey(string key)
        {
            uniqueRouteKeys.Add(key);
        }

Usage Example

 public void Apply(ControllerModel controller)
 {
     foreach (var routeValue in controller.RouteValues)
     {
         routeKeysProvider.AddKey(routeValue.Key);
     }
 }