Skip to content

Support in Net Core Asp.Net #471

@gregoriusus

Description

@gregoriusus

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions