Ejemplo n.º 1
0
        private void OnStart()
        {
            if (s_useICellFunc == null)
            {
                s_useICellFunc = Global.LocalStorage.UseGenericCell;
            }

            if (s_metadataUpdateFunc == null)
            {
                s_metadataUpdateFunc = (_, __) => { }
            }
            ;

            if (s_indexServiceFunc == null)
            {
                s_indexServiceFunc = (o, t) => { throw new IndexingServiceNotRegisteredException(); }
            }
            ;

            //SetLocalParallelism(3);

            new Task(() =>
            {
                while (true)
                {
                    Thread.Sleep(5000);
                    Log.Flush();
                }
            }).Start();
        }
Ejemplo n.º 2
0
 public static void RegisterIndexService(IndexServiceMatchDelegate func)
 {
     s_indexServiceFunc = func;
 }