private static Context CreateContext(NeoloadContextData ctx) { ContextBuilder cb = new ContextBuilder(); cb.Hardware = ctx.hardware; cb.Location = ctx.location; cb.Software = ctx.software; cb.Script = ctx.script; cb.Os = ctx.osFriendlyName; return(cb.build()); }
public void ConnectToDataExchangeApi(string dataExchangeApiUrl, string apiKey, NeoloadContextData ctx) { if (_mode != Mode.RUNTIME && _mode != Mode.END_USER_EXPERIENCE) { return; } context = CreateContext(ctx); if (apiKey == null) { apiKey = String.Empty; } this._dataExchangeClient = DataExchangeAPIClientFactory.NewClient(dataExchangeApiUrl, context, apiKey); }
public void ConnectToDataExchangeApi(string dataExchangeApiUrl, string apiKey, NeoloadContextData ctx) { context = CreateContext(ctx); this.dataExchangeClient = DataExchangeAPIClientFactory.NewClient(dataExchangeApiUrl, context, apiKey); }