public static void RegisterRoute(string routeName, RoutingInfo routingInfo) { TableServiceContext tableContext = GetTableContext(); RouteEntity entity = new RouteEntity(routeName, routingInfo); //this performs an Upsert (InsertOrRepalce) tableContext.AttachTo(_tableName, entity, null); tableContext.UpdateObject(entity); tableContext.SaveChanges(); _configCache.Remove(_partitionKey); }
public RouteEntity(string routeName, RoutingInfo routingInfo) : base(_partitionKey, routeName) { persist = GenericDataContractSerializer<RoutingInfo>.WriteObject(routingInfo); }
public RouteEntity(string routeName, RoutingInfo routingInfo) : base(_partitionKey, routeName) { persist = GenericDataContractSerializer <RoutingInfo> .WriteObject(routingInfo); }