Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Commit

Permalink
Feature refactor core (#784)
Browse files Browse the repository at this point in the history
* simplied item use of language feature

* use of object initializer

* fixed Fix whitepsace formatting on line 33, column 74, 106

* applied format
  • Loading branch information
sirh3e authored Nov 14, 2020
1 parent e51393b commit 6c2b0cc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Microsoft.Tye.Core/ApplicationFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,18 @@ public static async Task<ApplicationBuilder> CreateAsync(OutputContext output, F
var rootConfig = ConfigFactory.FromFile(source);
rootConfig.Validate();

var root = new ApplicationBuilder(source, rootConfig.Name!);
root.Namespace = rootConfig.Namespace;
var root = new ApplicationBuilder(source, rootConfig.Name!)
{
Namespace = rootConfig.Namespace
};

queue.Enqueue((rootConfig, new HashSet<string>()));

while (queue.TryDequeue(out var item))
{
var config = item.Item1;

// dependencies represents a set of all dependencies
var dependencies = item.Item2;
var (config, dependencies) = item;

if (!visited.Add(config.Source.FullName))
{
continue;
Expand Down

0 comments on commit 6c2b0cc

Please sign in to comment.