Skip to content

Commit 53b8177

Browse files
committed
cleaning up for publishing blog
1 parent a7ff09e commit 53b8177

File tree

11 files changed

+21
-25
lines changed

11 files changed

+21
-25
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
*.user
77
*.userosscache
88
*.sln.docstates
9+
*.nuspec
10+
*.nupkg
911

1012
# User-specific files (MonoDevelop/Xamarin Studio)
1113
*.userprefs
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System.Text;
77
using System.Threading.Tasks;
88

9-
namespace ConverterLibrary
9+
namespace LogicAppTemplate
1010
{
1111
public static class Constants
1212
{
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
<ProjectGuid>{CBEC9309-3748-487F-8118-A3865C21B02C}</ProjectGuid>
88
<OutputType>Library</OutputType>
99
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>ConverterLibrary</RootNamespace>
11-
<AssemblyName>ConverterLibrary</AssemblyName>
10+
<RootNamespace>LogicAppTemplate</RootNamespace>
11+
<AssemblyName>LogicAppTemplate</AssemblyName>
1212
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
1414
</PropertyGroup>
@@ -59,7 +59,7 @@
5959
</ItemGroup>
6060
<ItemGroup>
6161
<Compile Include="Constants\Constants.cs" />
62-
<Compile Include="Converter.cs" />
62+
<Compile Include="TemplateGenerator.cs" />
6363
<Compile Include="Models\ConnectionTemplate.cs" />
6464
<Compile Include="Models\DeploymentTemplate.cs" />
6565
<Compile Include="Properties\AssemblyInfo.cs" />

ConverterLibrary/Models/ConnectionTemplate.cs renamed to LogicAppTemplate/Models/ConnectionTemplate.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System.Text;
55
using System.Threading.Tasks;
66

7-
namespace ConverterLibrary.Models
7+
namespace LogicAppTemplate.Models
88
{
99
public class Api
1010
{

ConverterLibrary/Models/DeploymentTemplate.cs renamed to LogicAppTemplate/Models/DeploymentTemplate.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using System.Text;
88
using System.Threading.Tasks;
99

10-
namespace ConverterLibrary.Models
10+
namespace LogicAppTemplate.Models
1111
{
1212
public class DeploymentTemplate
1313
{

ConverterLibrary/Properties/AssemblyInfo.cs renamed to LogicAppTemplate/Properties/AssemblyInfo.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
// General Information about an assembly is controlled through the following
66
// set of attributes. Change these attribute values to modify the information
77
// associated with an assembly.
8-
[assembly: AssemblyTitle("ConverterLibrary")]
8+
[assembly: AssemblyTitle("LogicAppTemplate")]
99
[assembly: AssemblyDescription("")]
1010
[assembly: AssemblyConfiguration("")]
1111
[assembly: AssemblyCompany("")]
12-
[assembly: AssemblyProduct("ConverterLibrary")]
12+
[assembly: AssemblyProduct("LogicAppTemplate")]
1313
[assembly: AssemblyCopyright("Copyright © 2016")]
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]
35+
[assembly: AssemblyVersion("0.1.2.0")]
36+
[assembly: AssemblyFileVersion("0.1.2.0")]
Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using ConverterLibrary.Models;
1+
using LogicAppTemplate.Models;
22
using Microsoft.IdentityModel.Clients.ActiveDirectory;
33
using Newtonsoft.Json;
44
using Newtonsoft.Json.Linq;
@@ -15,10 +15,10 @@
1515
using System.Threading.Tasks;
1616
using System.Windows.Forms;
1717

18-
namespace ConverterLibrary
18+
namespace LogicAppTemplate
1919
{
2020
[Cmdlet(VerbsCommon.Get, "LogicAppTemplate", ConfirmImpact = ConfirmImpact.None)]
21-
public class Converter : PSCmdlet
21+
public class TemplateGenerator : PSCmdlet
2222
{
2323
[Parameter(
2424
Mandatory = true,
@@ -50,12 +50,12 @@ public class Converter : PSCmdlet
5050
private JObject workflowTemplateReference;
5151

5252

53-
public Converter()
53+
public TemplateGenerator()
5454
{
5555
template = JsonConvert.DeserializeObject<DeploymentTemplate>(Constants.deploymentTemplate);
5656
}
5757

58-
public Converter(string token) : this()
58+
public TemplateGenerator(string token) : this()
5959
{
6060
Token = token;
6161
}
@@ -100,7 +100,7 @@ public async Task<JObject> ConvertWithToken(string subscriptionId, string resour
100100
WriteVerbose("Retrieving Definition....");
101101
JObject _definition = await getDefinition();
102102
WriteVerbose("Converting definition to template");
103-
return await convertTemplate(_definition);
103+
return await generateDefinition(_definition);
104104
}
105105

106106
private async Task<JObject> getDefinition()
@@ -120,14 +120,8 @@ private async Task<JObject> getDefinition()
120120

121121
}
122122

123-
private async Task<JObject> convertTemplate(JObject definition)
124-
{
125-
126-
return await createConnections(definition);
127-
}
128-
129123

130-
public async Task<JObject> createConnections(JObject definition)
124+
private async Task<JObject> generateDefinition(JObject definition)
131125
{
132126
workflowTemplateReference = template.resources.Where(t => ((string)t["type"]) == "Microsoft.Logic/workflows").FirstOrDefault();
133127

File renamed without changes.

ConverterLibrary/Templates/starterTemplateCreated.json renamed to LogicAppTemplate/Templates/starterTemplateCreated.json

File renamed without changes.

0 commit comments

Comments
 (0)