Skip to content

Instantly share code, notes, and snippets.

@robashton
Created January 26, 2011 14:34
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 robashton/796761 to your computer and use it in GitHub Desktop.
Save robashton/796761 to your computer and use it in GitHub Desktop.
For<IReportService>()
.AlwaysUnique()
.Singleton()
.Add<ReportService>()
.Named(configuration.Id)
.Ctor<string>("clientId").Is(configuration.Id)
.Ctor<string>("dataServer").Is(configuration.Application.ReportingServer)
.Ctor<string>("databaseName").Is(configuration.Application.ReportingDatabase)
.Ctor<string>("dataUsername").Is(configuration.Application.ReportingUsername)
.Ctor<string>("dataPassword").Is(configuration.Application.ReportingPassword);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment