I am using SmartFormat in Net Core AspNet project.
I have own extension that I register it on startup globally:
Smart.Default.AddExtension
But ThreadStaticAttribute on Smart.Default prevents from reliably registering extensions globally as for each new thread my extension is not available because Smart.Default is newly created.
Is there some workaround, where I can set extension globally and it is picked up whenever CreateDefaultSmartFormat is called?
Maybe like SmartSettings.AddDefaultExtensions and those extension will be added on each new thread...
I am using SmartFormat in Net Core AspNet project.
I have own extension that I register it on startup globally:
Smart.Default.AddExtension
But ThreadStaticAttribute on Smart.Default prevents from reliably registering extensions globally as for each new thread my extension is not available because Smart.Default is newly created.
Is there some workaround, where I can set extension globally and it is picked up whenever CreateDefaultSmartFormat is called?
Maybe like SmartSettings.AddDefaultExtensions and those extension will be added on each new thread...