Click here to Skip to main content
15,892,059 members

Comments by datt265 (Top 70 by date)

datt265 16-Nov-22 10:11am View    
did not work for me
datt265 16-Nov-22 4:14am View    
Configuration resource = JsonConvert.DeserializeObject<configuration>(content);
string[] line = resource.ResourceRoot.Split('/');
var regex = new Regex(@"[\d\.]");
var matches = regex.Matches(line[3]);
string version = string.Empty;
foreach (Match match in matches)
{
version = string.Join(version, match);
}

datt265 11-Nov-22 4:30am View    
This was a really well explained answer and I managed to work, I had an attempt to do something similar but I tried to do class manually and nothing was working.

A question in case properties are available in json but the class does not have an entry for them, what would happen ?
datt265 10-Nov-22 10:56am View    
updated my question
datt265 23-Nov-18 4:45am View    
GOOD
FW2.PLANT_DEV.APPNAME.REQUEST.*.*
FW2.PLANT_DEV.APPLICATION.REQUEST.*.*
FW2.PLANT_DEV.APPLICATION.REPLY.*.*
FW2.PLANT_PRD.APPNAME.REQUEST.*.*
FW2.PLANT_PRD.APPNAME.REQUEST.TYPE.*
FW2.PLANT_PRD.APPNAME.REQUEST.TYPE.NAME-001
FW2.PLANT_PRD.APPNAME.REQUEST.*.NAME
PLANT_DEV.APPLICATION.REQUEST.*.*
PLANT_DEV.APPLICATION.REPLY.*.*
PLANT_PRD.APPNAME.REQUEST.*.*
PLANT_PRD.APPNAME.REQUEST.TYPE.*
PLANT_PRD.APPNAME.REQUEST.TYPE.NAME
PLANT_PRD.APPNAME.REQUEST.*.NAME

NOT GOOD
FW2_SITE_DEV.APPNAME.REQUEST.*.*
FW2_PLANT_DEV.APPNAME.REQUEST.*.*
FW2.SITE.DEV.APPNAME.REQUEST.*.*
FW2.SITE_DEV.APPNAME.REQUEST
B2K_DEV.APPNAME.REQUEST.*.*
B2K.DEV.APPNAME.REQUEST.*.*