public static WorkspaceConfiguration WorkspaceConfig <TWorkspaceType>(this IQFrameworkContainer container) { return(container.Resolve <WorkspaceConfiguration>(typeof(TWorkspaceType).Name) ?? container.AddWorkspaceConfig <TWorkspaceType>(typeof(TWorkspaceType).Name)); }