Beispiel #1
0
        public static void Initialize()
        {
            if (!initialized)
            {
                lock (lockable)
                {
                    if (!initialized)
                    {
                        var platform = PlatformAdapter.Resolve <IProvidePlatformServices>();
                        Configuration  = platform.Configuration ?? new Configuration(new NullConfigurationStore());
                        Reflector      = platform.Reflector ?? new NullReflector();
                        ThrowException = platform.Throw;
                        Formatter.AddPlatformFormatters(platform.Formatters);

                        initialized = true;
                    }
                }
            }
        }