0

将 NServiceBus 从版本 3 升级到 4 并在编译时出现此错误:

错误 CS0234:命名空间“NServiceBus.Sagas”中不存在类型或命名空间名称“Impl”(您是否缺少程序集引用?)

    if (NServiceBus.Sagas.Impl.Configure.SagasWereFound)
        {
            var connStr = ConfigurationManager.AppSettings["DB"];

            // Register session factory which takes care of managing
            // the database connections and transactions


    Configure.Instance.Configurer.ConfigureComponent(typeof(OracleSagaSessionFactory),   
    DependencyLifecycle.InstancePerCall)
                .ConfigureProperty("ConnectionString", connStr);

            // Then register the saga persister itself

    Configure.Instance.Configurer.ConfigureComponent(typeof(OracleSagaPersister), 
    DependencyLifecycle.InstancePerCall);
        }
4

1 回答 1

2

您应该能够使用:

NServiceBus.Features.Feature.IsEnabled<Features.Sagas>()
于 2014-05-15T01:08:41.933 回答