Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created May 24, 2022 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgolubyev/9a2ce8895b50e7dafc65672160c7d656 to your computer and use it in GitHub Desktop.
Save lgolubyev/9a2ce8895b50e7dafc65672160c7d656 to your computer and use it in GitHub Desktop.
namespace System.Composition.Hosting
{
public class ContainerConfiguration
{
public ContainerConfiguration WithExport<TExport>(TExport exportedInstance);
public ContainerConfiguration WithExport<TExport>(TExport exportedInstance, string contractName = null, IDictionary<string, object> metadata = null);
public ContainerConfiguration WithExport(Type contractType, object exportedInstance);
public ContainerConfiguration WithExport(Type contractType, object exportedInstance, string contractName = null, IDictionary<string, object> metadata = null);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment