Skip to content

Instantly share code, notes, and snippets.

@configureappio
Created April 3, 2018 07:48
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 configureappio/f8ca50e7a93b913a18697fab5c8f8e5a to your computer and use it in GitHub Desktop.
Save configureappio/f8ca50e7a93b913a18697fab5c8f8e5a to your computer and use it in GitHub Desktop.
An example of aggregating multiple interfaces to allow registration with interface segregation
public interface IAppSettings
{
string ApplicationName { get; }
}
public interface ISqlConnectionSettings
{
string SqlConnectionSting { get; }
}
public interface IOracleConnectionSettings
{
string OracleConnectionSting { get; }
}
public interface IAppSettingsResolved : IAppSettings, ISqlConnectionSettings, IOracleConnectionSettings
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment