How to stop xBim IfcStore.Open() operation?

72 views Asked by At

I have a simple question - is it possible to stop/cancel xBim

   var model = IfcStore.Open(...)

method once it has started to create database? I have wrapped it in Task.Run like this to keep my app responsive, but of course cancellationTokenSource does not help much:

   var readDataBase = Task.Run(() =>
   {
      model = IfcStore.Open(fileName, editor);
   }, cancellationTokenSource.Token);
0

There are 0 answers