locked
Getting exception 'ValidationContext' does not contain a definition for 'ServiceContainer' and no accessible extension method 'ServiceContainer' accepting a first argument of type 'ValidationContext' could be found RRS feed

  • Question

  • User2056817590 posted

     for the code below

    var timeRangeContext = new ValidationContext(this.timeRange, validationContext.ServiceContainer, validationContext.Items);

    Wednesday, April 14, 2021 4:55 AM

All replies

  • User-474980206 posted

    Validation context no longer exposes the service container. You will need to refactor your code. 

    Wednesday, April 14, 2021 2:45 PM