private static void CodeSetupExceptionHandler()
        {
            var defaults = new ExceptionDefaults
            {
                Token = "Test-Token",
                ApplicationName = "WindowsForms-Sample",
                Host = "WindowsForms-Sample",
                RemoteLogUri = new Uri("http://localhost:11079/error/log", UriKind.Absolute)
            };

            ExceptionHandler.Configure(new HttpExceptionWritter(), defaults, null);
        }
Example #2
0
        private static void CodeSetupExceptionHandler()
        {
            var writter = new HttpExceptionWritter
            {
                RequestUri = new Uri("http://localhost:11079/error/log", UriKind.Absolute)
            };

            var defaults = new ExceptionDefaults
            {
                Token = "Test-Token",
                ApplicationName = "Console-Sample",
                Host = Environment.MachineName
            };

            ExceptionHandler.Configure(writter, defaults, null);
        }
        private static void SetUpExceptionHandler()
        {
            Uri uri = Application.Current.Host.Source;
            string currentHost = string.Format("{0}{1}{2}:{3}", uri.Scheme, Uri.SchemeDelimiter, uri.Host, uri.Port);

            var defaults = new ExceptionDefaults
            {
                Token = "Test-Token",
                ApplicationName = "Sample",
                Host = currentHost,

                // NOTE: Possible to pass URI by startup arguments.
                RemoteLogUri = new Uri("http://localhost:11079/error/log", UriKind.Absolute)
            };
            ExceptionHandler.Configure(new ClientHttpExceptionWritter(), defaults, null);
        }
        private static void SetUpExceptionHandler()
        {
            // Configure
            var writter = new ClientHttpExceptionWritter
            {
                // NOTE: Possible to pass URI by startup arguments.
                RequestUri = new Uri("http://localhost:11079/error/log", UriKind.Absolute)
            };

            Uri uri = Application.Current.Host.Source;
            var defaults = new ExceptionDefaults
            {
                Token = "Silverlight-Test-Token",
                ApplicationName = "Silverlight-Sample",
                Host = string.Format("{0}{1}{2}:{3}", uri.Scheme, Uri.SchemeDelimiter, uri.Host, uri.Port)
            };
            ExceptionHandler.Configure(writter, defaults);
        }
        private static void SetUpExceptionHandler()
        {
            var defaults = new ExceptionDefaults
            {
                Token = "Test-Token",
                ApplicationName = "Sample",
                Host = "Windows Phone 8", // TODO: Populate with something usefull

                // NOTE: Possible to pass URI by startup arguments.
                RemoteLogUri = new Uri("http://192.168.0.3:11079/error/log", UriKind.Absolute)
            };
            ExceptionHandler.Configure(new ClientHttpExceptionWritter(), defaults, null);
        }