Exemplo n.º 1
0
        private static async Task <TraceResultsSet> TraceAsync(Client c, string token)
        {
            TraceConfiguration   traceConfiguration = new TraceConfiguration();
            List <TraceLocation> tlList             = new List <TraceLocation>();

            tlList.Add(s_traceLocation);

            string traceLocationList = JsonConvert.SerializeObject(tlList);
            var    result            = c.TraceAsync(token, s_formatParam, s_versioSDE, "", "", s_traceType, traceLocationList, traceConfiguration.ToJson(), s_serverWebAdaptorName, s_utilityNetworkName);

            return(await result);
        }
Exemplo n.º 2
0
        private static async Task <TraceResultsSet> TraceAsync(Client c, string token)
        {
            TraceConfiguration   traceConfiguration = new TraceConfiguration();
            List <TraceLocation> tlList             = new List <TraceLocation>();

            tlList.Add(s_traceLocation);
            string traceLocationList = JsonConvert.SerializeObject(tlList);

            Body body = new Body();

            body.F                  = s_formatParam;
            body.GdbVersion         = s_versionSDE;
            body.TraceConfiguration = JsonConvert.SerializeObject(traceConfiguration);
            body.TraceLocations     = tlList.ConvertAll <object>(item => (object)item).ToArray();
            body.TraceType          = s_traceType;

            var result = c.TraceAsync(s_serverWebAdaptorName, s_utilityNetworkName, token, body);

            return(await result);
        }