static void Main(string[] args) { TracingConfig.UseTracingContext(new TracingRecordRabbitmq(hostName, username, password, new Loger()), systemID, systemName, "0"); client.RegistTracing(); var res = client.Invoke <Raven.Rpc.IContractModel.RequestModel, Raven.Rpc.IContractModel.ResponseModel <string, int> >("api/test/get2", new Rpc.IContractModel.RequestModel()); Raven.Rpc.Tracing.Helpers.TracingHelper.RecordSystemLogs(new SystemLogs() { Level = LogsLevel.L1 }); System.Console.ReadLine(); //string res = null; //res = Util.GetUniqueCode22(); //res = new Guid(Util.GetGuidArray()).ToString(); //Console.WriteLine(res); //res = new Guid(Util.GetGuidArray()).ToString(); //Console.WriteLine(res); //res = new Guid(Util.GetGuidArray()).ToString(); //Console.WriteLine(res); //res = new Guid(Util.GetGuidArray()).ToString(); //Console.WriteLine(res); //res = new Guid(Util.GetGuidArray()).ToString(); //Console.WriteLine(res); }
protected void Application_Start() { GlobalConfiguration.Configure(WebApiConfig.Register); TracingConfig.UseTracingContext(new TracingRecordRabbitmq(hostName, username, password, new Loger())); }
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); RouteConfig.RegisterRoutes(RouteTable.Routes); TracingConfig.UseTracingContext(new TracingRecordRabbitmq(hostName, username, password, new Loger())); }