Skip to content

2.7.0

Compare
Choose a tag to compare
@mayuki mayuki released this 05 Dec 10:14
e3ef908

Improvements

  • #231: Add support for IServiceLocator / IServiceProvider Scope.
  • #232: Create a filter instance via factory.
  • #233: Add Extensions to create a broadcaster from IGroup.

Breaking changes

  • Remove Register methods from IServiceLocator.
    • IServiceLocator is now provided for only resolving external types. MagicOnion doesn't register any service and types.
  • Change signature of IGroupRepositoryFactory method
    • IGroupRepository CreateRepository(IServiceLocator serviceLocator); -> IGroupRepository CreateRepository(IFormatterResolver formatterResolver, IMagicOnionLogger logger, IServiceLocator serviceLocator);
  • OpenTelemetryCollectorFilterAttribute has been changed to IMagicOnionFilterFactory implementation.
    • options.Service.GlobalFilters.Add<OpenTelemetryCollectorFilterAttribute>(); -> options.Service.GlobalFilters.Add(new OpenTelemetryCollectorFilterAttribute());