зеркало из https://github.com/Azure/TypeEdge.git
dispose pattern - 0.2.462
This commit is contained in:
Родитель
2cf9eccdd3
Коммит
1c7e223857
|
@ -1 +1 @@
|
|||
Subproject commit 3e20232a52f03b05a3ae21d5c934bed1e8f93710
|
||||
Subproject commit c846b882ce8cecd5e4e0346925a80fac03f81de5
|
|
@ -1 +1 @@
|
|||
Subproject commit 9eb03edfa6e0408271865e16b6016108146b610f
|
||||
Subproject commit 6cf583222b3c40328ee7b1b3b5090465e761ca24
|
|
@ -2,14 +2,14 @@
|
|||
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>TypeEdge.Host</id>
|
||||
<version>0.2.461</version>
|
||||
<version>0.2.462</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.461" exclude="Build,Analyzers" />
|
||||
<dependency id="TypeEdge" version="0.2.462" 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" />
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<PropertyGroup>
|
||||
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
|
||||
<PackageId>TypeEdge.Proxy</PackageId>
|
||||
<Version>0.2.461</Version>
|
||||
<Version>0.2.462</Version>
|
||||
<Authors>paloukari</Authors>
|
||||
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
|
|
|
@ -95,8 +95,13 @@ namespace TypeEdge.Modules
|
|||
{
|
||||
return InitializationResult.Ok;
|
||||
}
|
||||
|
||||
protected virtual void Dispose(bool disposing)
|
||||
{
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
protected T GetProxy<T>()
|
||||
where T : class
|
||||
{
|
||||
|
@ -112,7 +117,7 @@ namespace TypeEdge.Modules
|
|||
|
||||
// Open a connection to the Edge runtime
|
||||
_ioTHubModuleClient = ModuleClient.CreateFromConnectionString(_connectionString, _transportSettings);
|
||||
|
||||
|
||||
await _ioTHubModuleClient.OpenAsync();
|
||||
//Console.WriteLine($"{Name}:IoT Hub module client initialized.");
|
||||
|
||||
|
@ -289,6 +294,8 @@ namespace TypeEdge.Modules
|
|||
|
||||
public void Dispose()
|
||||
{
|
||||
Dispose(true);
|
||||
|
||||
if (Volumes != null)
|
||||
foreach (var item in Volumes)
|
||||
{
|
||||
|
@ -300,8 +307,9 @@ namespace TypeEdge.Modules
|
|||
}
|
||||
catch { }
|
||||
}
|
||||
}
|
||||
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
#region private methods
|
||||
|
||||
private Task<MethodResponse> MethodCallback(MethodRequest methodRequest, object userContext)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<PropertyGroup>
|
||||
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
|
||||
<PackageId>TypeEdge</PackageId>
|
||||
<Version>0.2.461</Version>
|
||||
<Version>0.2.462</Version>
|
||||
<Authors>paloukari</Authors>
|
||||
<PackageOutputPath>../../TypeEdgeNuGets</PackageOutputPath>
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
|
|
Загрузка…
Ссылка в новой задаче