예제 #1
0
        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);
        }
예제 #2
0
 protected void Application_Start()
 {
     GlobalConfiguration.Configure(WebApiConfig.Register);
     TracingConfig.UseTracingContext(new TracingRecordRabbitmq(hostName, username, password, new Loger()));
 }
예제 #3
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     TracingConfig.UseTracingContext(new TracingRecordRabbitmq(hostName, username, password, new Loger()));
 }