Ejemplo n.º 1
0
        public static void Init()
        {
            __traceListener = new PBTraceListener();
            //__traceListener.Filter = new System.Diagnostics.EventTypeFilter(System.Diagnostics.SourceLevels.Warning);
            System.Diagnostics.Trace.Listeners.Add(__traceListener);

            //DefaultMongoSerialization.SetDefaultMongoSerializationOptions();
            //DefaultMongoSerialization.RegisterDefaultMongoSerializer();

            HtmlRun.SetResult = dt => RunSource.CurrentRunSource.SetResult(dt);
        }
Ejemplo n.º 2
0
        // load dll but to late to get Init method, dll is loaded only when code from dll is executed
        // used to load dll ebook.download.dll from project download.dll.project.xml
        //public static void Fake()
        //{
        //}

        public static void Init(bool traceProvider = false, bool traceSerializer = false)
        {
            __traceListener = new PBTraceListener();
            //__traceListener.Filter = new System.Diagnostics.EventTypeFilter(System.Diagnostics.SourceLevels.Warning);
            System.Diagnostics.Trace.Listeners.Add(__traceListener);

            // ATTENTION à ré-écrire
            //PBMongoSerialization.SetDefaultMongoSerializationOptions();
            //PBMongoSerialization.RegisterDefaultMongoSerializer();
            RunSerializer.InitDefault(traceProvider, traceSerializer);
            RunSerializer.InitZValue(traceSerializer);

            HtmlRun.SetResult = dt => RunSource.CurrentRunSource.SetResult(dt);
        }