added manifest in source control

This commit is contained in:
Spyros Garyfallos 2018-07-16 12:35:11 -07:00
Родитель 7284576cf7
Коммит f43040b466
5 изменённых файлов: 14 добавлений и 9 удалений

@ -1 +1 @@
Subproject commit 04cf9524b3d55aed9b95eaafd056becdbc785236
Subproject commit 2b74ce31906f6a34206f38dceaba65abfc8e104f

Просмотреть файл

@ -2,14 +2,14 @@
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>TypeEdge.Host</id>
<version>0.2.1</version>
<version>0.2.2</version>
<authors>paloukari</authors>
<owners>paloukari</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Package Description</description>
<dependencies>
<group targetFramework=".NETCoreApp2.1">
<dependency id="TypeEdge" version="0.2.1" exclude="Build,Analyzers" />
<dependency id="TypeEdge" version="0.2.2" exclude="Build,Analyzers" />
<dependency id="Serilog.Extensions.Logging" version="1.4.0" exclude="Build,Analyzers" />
<dependency id="Serilog.Sinks.Console" version="2.1.0" exclude="Build,Analyzers" />
<dependency id="Microsoft.Extensions.DependencyInjection" version="2.1.1" exclude="Build,Analyzers" />

Просмотреть файл

@ -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<TTModule>();
}
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;
}

Просмотреть файл

@ -3,7 +3,7 @@
<PropertyGroup>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<PackageId>TypeEdge.Proxy</PackageId>
<Version>0.2.1</Version>
<Version>0.2.2</Version>
<Authors>paloukari</Authors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>

Просмотреть файл

@ -3,7 +3,7 @@
<PropertyGroup>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<PackageId>TypeEdge</PackageId>
<Version>0.2.1</Version>
<Version>0.2.2</Version>
<Authors>paloukari</Authors>
<PackageOutputPath>../../TypeEdgeNuGets</PackageOutputPath>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>