source/Jmp.Web/App_Start/UnityConfig.cs
/// <summary>Registers the type mappings with the Unity container.</summary>
/// <param name="container">The unity container to configure.</param>
/// <remarks>There is no need to register concrete types such as controllers or API controllers (unless you want to 
/// change the defaults), as Unity allows resolving a concrete type even if it was not previously registered.</remarks>
Registers the type mappings with the Unity container.
Registers the type mappings with the Unity container .
public static void RegisterTypes(IUnityContainer container)
        {
            var defaultReportSetup = new ReportSetup()
            {
                Jql = "project=MVPD1",
                ColumnLabelPrefix = "jmp-byperson-",
                WeeklyCapacityHoursPerStream = "*: 30",
                IssueFinalStatuses = "DEV COMPLETE, CANCELLED",
                JiraApiUrl = "https://orwell.atlassian.net/rest/api/2/",
                JiraShowIssueUrl = "https://orwell.atlassian.net/browse/",
                JiraSearchIssuesUrl = "https://orwell.atlassian.net/issues/?jql="
            };
            container.RegisterInstance<ReportSetup>(defaultReportSetup, new ContainerControlledLifetimeManager());
            container.RegisterType<IJiraClient, JiraClient>();
            container.RegisterType<IReportService, ReportService>();
        }
public static void RegisterTypes ( IUnityContainer container ) { var defaultReportSetup = new ReportSetup ( ) { Jql = " " , ColumnLabelPrefix = " " , WeeklyCapacityHoursPerStream = " " , IssueFinalStatuses = " " , JiraApiUrl = " " , JiraShowIssueUrl = " " , JiraSearchIssuesUrl = " " } ; container . RegisterInstance < ReportSetup > ( defaultReportSetup , new ContainerControlledLifetimeManager ( ) ) ; container . RegisterType < IJiraClient , JiraClient > ( ) ; container . RegisterType < IReportService , ReportService > ( ) ; }
Registers the type mappings with the Unity container.
Registers the type mappings with the Unity container .
container
IUnityContainer
The unity container to configure.
The unity container to configure .
remarks
There is no need to register concrete types such as controllers or API controllers (unless you want to
change the defaults), as Unity allows resolving a concrete type even if it was not previously registered.
There is no need to register concrete types such as controllers or API controllers ( unless you want to change the defaults ) as Unity allows resolving a concrete type even if it was not previously registered .