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(); }
public static void RegisterIndexService(IndexServiceMatchDelegate func) { s_indexServiceFunc = func; }