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); }
/// <inheritdoc /> public Task <Possible <WorkspaceDefinition> > GetWorkspaceDefinitionForAllResolversAsync() { return(m_decoratee.GetWorkspaceDefinitionForAllResolversAsync()); }