《ASP.NET Core 3框架揭秘》勘误[逐步完善中…]

第一次印刷

[上册]

  • P6 最后1段
    • 原文:KestrelServer是采用libuv创建的跨平台Web服务器。
    • 改为:KestrelServer是一款跨平台Web服务器。
  • P21 第1段
    • 原文:curl.exe or the Invoke-WebRequest
    • 改为: curl或者Invoke-WebRequest
  • P47 第1段
    • 原文:可以发现它具有如下两个程序集的应用
    • 改为:可以发现它具有如下针对两个程序集的引用
  • P64 第2段
    • 原文:这个方法可以是一个单纯的方法
    • 改为:这个方法可以是一个单纯的抽象方法
  • P67 第2个代码片段
    • 原文:public class FoobarEngineFactory : EngineFactory
    • 改为:public class FoobarEngineFactory : MvcEngineFactory
  • P69 第2个代码片段
    • 原文:.Register<ControllerActivator, SingletonControllerActivator>();
    • 改为:.Register<IControllerActivator, SingletonControllerActivator>();
  • P71 第1个代码片段
    • 原文: public Foo(IBar bar, IBaz):this(bar) =>Baz = baz;
    • 改为:public Foo(IBar bar, IBaz baz):this(bar) =>Baz = baz;
  • P76 第1个代码片段
    • 原文
    • public class Foobar<T1, T2>: IFoobar<T1,T2>
      {
          public IFoo Foo { get; }
          public IBar Bar { get; }
          public Foobar(IFoo foo, IBar bar)
          {
              Foo = foo;
              Bar = bar;
          }
      }
    • 改为
    • public class Foobar<T1, T2>: IFoobar<T1,T2>
      {
          public T1 Foo { get; }
          public T2 Bar { get; }
          public Foobar(T1 foo, T2 bar)
          {
              Foo = foo;
              Bar = bar;
          }
      }
  • P91 第1个代码片段
    • 原文
    • public class Foobar<T1, T2>: IFoobar<T1,T2>
      {
          public IFoo Foo { get; }
          public IBar Bar { get; }
          public Foobar(IFoo foo, IBar bar)
          {
              Foo = foo;
              Bar = bar;
          }
      }
    • 改为
    • public class Foobar<T1, T2>: IFoobar<T1,T2>
      {
          public T1 Foo { get; }
          public T2 Bar { get; }
          public Foobar(T1 foo, T2 bar)
          {
              Foo = foo;
              Bar = bar;
          }
      }
  • P91 第1个代码片段
    • 原文:Debug.Assert(ReferenceEquals(rootScope, singletonService.ApplicationServices));
    • 改为:Debug.Assert(ReferenceEquals(serviceProvider , singletonService.ApplicationServices));
  • P213 第1段
    • 原文:Lood方法还会利用这个DbContext对象将提供的初始化配置添加到数据库中。
    • 改为:Load方法还会利用这个DbContext对象将提供的初始化配置添加到数据库中。
  • P233 第1段
    • 原文:第二个反省参数代表依赖的服务类型
    • 改为:第二个泛型参数代表依赖的服务类型
  • P279 最后1段
    • 原文:TraceListener具有两个名为TraceData的方法
    • 改为:TraceSource具有两个名为TraceData的方法
  • P299 最后1段
    • 原文:宿主元素为通过Foobar对象转换而成的EventPayload对象
    • 改为:数组元素为通过Foobar对象转换而成的EventPayload对象
  • P386 第1个代码片段
    • 原文:"Host": "192.168.0.2" (appsettings.production.json)
    • 改为:"Host": "192.168.0.3"

猜你喜欢

转载自www.cnblogs.com/artech/p/corrigendum.html