Skip to content

Commit

Permalink
fix: re-add app.Run() into .NET examples (aws#2060)
Browse files Browse the repository at this point in the history
The "automatic running before exit" does not work with the .NET runtime,
so add the manual run back in.
  • Loading branch information
rix0rrr authored Mar 20, 2019
1 parent 32c2377 commit eb611ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ static void Main(string[] args)
// app by typing `cdk list`.
new HelloStack(app, "hello-cdk-1", new StackProps());
new HelloStack(app, "hello-cdk-2", new StackProps());

app.Run();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ let main _ =
let app = App(null)
MyStack(app, "hello-cdk-1", StackProps()) |> ignore
MyStack(app, "hello-cdk-2", StackProps()) |> ignore
app.Run() |> ignore
0

0 comments on commit eb611ce

Please sign in to comment.