示例#1
0
        private async Task <Possible <WorkspaceDefinition> > TryGetWorkspaceDefinitionAsync(IWorkspaceProvider workspaceProvider)
        {
            Possible <WorkspaceDefinition> workspaceDefinition;

            using (var sw = Watch.Start())
            {
                workspaceDefinition = await workspaceProvider.GetWorkspaceDefinitionForAllResolversAsync();

                if (workspaceDefinition.Succeeded)
                {
                    var configurationFiles = workspaceProvider.GetConfigurationModule()?.Specs.Count ?? 0;
                    Logger.WorkspaceDefinitionCreated(
                        LoggingContext,
                        workspaceDefinition.Result.ModuleCount,
                        workspaceDefinition.Result.SpecCount,
                        configurationFiles,
                        sw.ElapsedMilliseconds);
                }
            }

            return(workspaceDefinition);
        }
示例#2
0
 /// <inheritdoc />
 public Task <Possible <WorkspaceDefinition> > GetWorkspaceDefinitionForAllResolversAsync()
 {
     return(m_decoratee.GetWorkspaceDefinitionForAllResolversAsync());
 }