Skip to content

Conversation

@RLittlesII
Copy link
Member

No description provided.

add Container<T> implementation
remove extension of IServiceProvider to reduce boxing
added tests for the new surface
/// <param name="instance">The instance.</param>
/// <param name="contract">The contract.</param>
public static void AddSingleton<T>(this IEditServices serviceLocator, object instance, string? contract = null) => serviceLocator.AddService(() => instance, typeof(T), contract);
public static void AddSingleton<TContract>(this IEditServices serviceLocator, object instance, string contract) =>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we avoid the whole "object" thing here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are left over and will probably go away in the next iteration. I can remove the whole class now that most of the methods exist on the interface.

@RLittlesII RLittlesII enabled auto-merge (squash) September 11, 2021 05:08
@RLittlesII RLittlesII merged commit a22c8fa into main Sep 11, 2021
@RLittlesII RLittlesII deleted the feature/containers branch September 11, 2021 05:13
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants