Beispiel #1
0
        protected RavenClient(Dsn dsn, bool captureUnhandled = true)
        {
            Dsn = dsn;

#if NETFX_CORE
            _storage  = new RavenStorageClient();
            _platform = new WindowsPlatformClient();
#endif

            _httpClient = BuildHttpClient();

            if (captureUnhandled)
            {
#if NETFX_CORE
                Application.Current.UnhandledException += Application_UnhandledException;
#endif
            }
        }
Beispiel #2
0
        protected RavenClient(Dsn dsn, bool captureUnhandled = true)
        {
            Dsn = dsn;

#if NETFX_CORE
            _storage = new RavenStorageClient();
            _platform = new WindowsPlatformClient();
#endif

            _httpClient = BuildHttpClient();

            if (captureUnhandled)
            {
#if NETFX_CORE
                Application.Current.UnhandledException += Application_UnhandledException;
#endif
            }
        }