Skip to content

Autofac ILifeTimeScope cannot be registered when using DialogFactory #1

@jusso-dev

Description

@jusso-dev

When I follow your instructions, and register DialogFactory and IDialogFactory, I still get an exception on start-up, that ILifeTimeScope is not marked [Serializable]

Exception: Type ‘Autofac.Core.Lifetime.LifetimeScope’ in Assembly ‘Autofac, Version=4.0.1.0, Culture=neutral, PublicKeyToken=17863af14b0044da’ is not marked as serializable.
[File of type 'text/plain']

builder.RegisterType()
.Keyed(FiberModule.Key_DoNotSerialize)
.AsImplementedInterfaces()
.InstancePerLifetimeScope();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions