diff --git a/Examples/AnomalyDetection b/Examples/AnomalyDetection index 04cf952..2b74ce3 160000 --- a/Examples/AnomalyDetection +++ b/Examples/AnomalyDetection @@ -1 +1 @@ -Subproject commit 04cf9524b3d55aed9b95eaafd056becdbc785236 +Subproject commit 2b74ce31906f6a34206f38dceaba65abfc8e104f diff --git a/TypeEdge.Host/.nuspec b/TypeEdge.Host/.nuspec index e3c0bf0..03b715e 100644 --- a/TypeEdge.Host/.nuspec +++ b/TypeEdge.Host/.nuspec @@ -2,14 +2,14 @@ TypeEdge.Host - 0.2.1 + 0.2.2 paloukari paloukari false Package Description - + diff --git a/TypeEdge.Host/TypeEdgeHost.cs b/TypeEdge.Host/TypeEdgeHost.cs index 2a2a12f..6068ba7 100644 --- a/TypeEdge.Host/TypeEdgeHost.cs +++ b/TypeEdge.Host/TypeEdgeHost.cs @@ -32,12 +32,13 @@ namespace TypeEdge.Host public class TypeEdgeHost { private readonly IConfigurationRoot _configuration; - private IContainer _container; private readonly ContainerBuilder _containerBuilder; private readonly EdgeHub _hub; - private ModuleCollection _modules; private readonly TypeEdgeHostOptions _options; private readonly bool _inContainer; + private string _manifest; + private IContainer _container; + private ModuleCollection _modules; const string DisableServerCertificateValidationKeyName = "Microsoft.Azure.Devices.DisableServerCertificateValidation"; @@ -80,7 +81,7 @@ namespace TypeEdge.Host _containerBuilder.RegisterType(); } - public void Build() + public string Build() { CleanUp(); @@ -93,6 +94,8 @@ namespace TypeEdge.Host ConfigureModules(); BuildHub(deviceSasKey); + + return _manifest; } private void CleanUp() @@ -369,9 +372,11 @@ namespace TypeEdge.Host }; await registryManager.ApplyConfigurationContentOnDeviceAsync(_options.DeviceId, configurationContent); + _manifest = @"// This content was automatically generated by TypeEdge Emulator. Do not edit directly." + Environment.NewLine + Environment.NewLine; + _manifest += JToken.Parse(configurationContent.ToJson()).ToString(Formatting.Indented); if (_options.PrintDeploymentJson.HasValue && _options.PrintDeploymentJson.Value) - Console.WriteLine(JToken.Parse(configurationContent.ToJson()).ToString(Formatting.Indented)); + Console.WriteLine(_manifest); return sasKey; } diff --git a/TypeEdge.Proxy/TypeEdge.Proxy.csproj b/TypeEdge.Proxy/TypeEdge.Proxy.csproj index b0e121f..dd9df10 100644 --- a/TypeEdge.Proxy/TypeEdge.Proxy.csproj +++ b/TypeEdge.Proxy/TypeEdge.Proxy.csproj @@ -3,7 +3,7 @@ $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb TypeEdge.Proxy - 0.2.1 + 0.2.2 paloukari true diff --git a/TypeEdge/TypeEdge.csproj b/TypeEdge/TypeEdge.csproj index 1566ff5..00b3b4b 100644 --- a/TypeEdge/TypeEdge.csproj +++ b/TypeEdge/TypeEdge.csproj @@ -3,7 +3,7 @@ $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb TypeEdge - 0.2.1 + 0.2.2 paloukari ../../TypeEdgeNuGets true