[1.8.3] Shutdown working

This commit is contained in:
BlubbFish 2022-01-20 20:24:30 +01:00
parent 9e06629595
commit 1cc8df148d
3 changed files with 23 additions and 2 deletions

View File

@ -1,5 +1,15 @@
# Changelog # Changelog
## 1.8.3 - 2022-01-20 - Shutdown working
### New Features
* Deconstruction makes better Output
### Bugfixes
### Changes
* Bump Bot-Utils to ([v.1.2.5](https://git.blubbfish.net/vs_utils/Bot-Utils/src/tag/v1.2.5))
* Bunp Utils to ([v1.6.1](https://git.blubbfish.net/vs_utils/Utils/src/tag/v1.6.1))
* Bump Zway to ([v1.6.1](https://git.blubbfish.net/vs_projects/Zway/src/tag/v1.6.1))
* Modify buildscript
## 1.8.2 - 2022-01-19 - Logging better ## 1.8.2 - 2022-01-19 - Logging better
### New Features ### New Features
* Change buildscript, so logrotate is not overwritten by setup every time * Change buildscript, so logrotate is not overwritten by setup every time

View File

@ -34,9 +34,19 @@ namespace BlubbFish.IoT.Bots.ZwayBot {
this.ModulInterconnect(); this.ModulInterconnect();
this.ModulEvents(); this.ModulEvents();
this.WaitForShutdown(); this.WaitForShutdown();
this.Deconstructor(zw);
Console.WriteLine("Bye!");
}
private void Deconstructor(ZwayController zw) {
Console.WriteLine("BlubbFish.IoT.Bots.ZwayBot.Program.Deconstructor(): Deconstruct ZwayBot.");
this.ModulDispose(); this.ModulDispose();
Console.WriteLine("BlubbFish.IoT.Bots.ZwayBot.Program.Deconstructor(): ModuleDisposed.");
zw.Dispose(); zw.Dispose();
Console.WriteLine("BlubbFish.IoT.Bots.ZwayBot.Program.Deconstructor(): Zway lib Disposed.");
} }
private void ZwayDataUpate(Object sender, Zway.Events.DeviceUpdateEvent e) => Console.WriteLine("-> ZW [" + e.UpdateTime + "]: " + e.Parent.ToString()); private void ZwayDataUpate(Object sender, Zway.Events.DeviceUpdateEvent e) => Console.WriteLine("-> ZW [" + e.UpdateTime + "]: " + e.Parent.ToString());

View File

@ -6,17 +6,18 @@
<RootNamespace>BlubbFish.IoT.Bots.ZwayBot.Program</RootNamespace> <RootNamespace>BlubbFish.IoT.Bots.ZwayBot.Program</RootNamespace>
<AssemblyName>Zway-Bot</AssemblyName> <AssemblyName>Zway-Bot</AssemblyName>
<PackageId>Program.ZwayBot.Bots.IoT.BlubbFish</PackageId> <PackageId>Program.ZwayBot.Bots.IoT.BlubbFish</PackageId>
<Version>1.8.2</Version> <Version>1.8.3</Version>
<NeutralLanguage>de-DE</NeutralLanguage> <NeutralLanguage>de-DE</NeutralLanguage>
<Description>Is a Bot for Zwave Devices</Description> <Description>Is a Bot for Zwave Devices</Description>
<Authors>BlubbFish</Authors> <Authors>BlubbFish</Authors>
<Company>BlubbFish</Company> <Company>BlubbFish</Company>
<Copyright>Copyright © BlubbFish 2017 - 19.01.2022</Copyright> <Copyright>Copyright © BlubbFish 2017 - 20.01.2022</Copyright>
<PackageLicenseFile>LICENSE</PackageLicenseFile> <PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageProjectUrl>https://git.blubbfish.net/vs_projects/Zway-Bot</PackageProjectUrl> <PackageProjectUrl>https://git.blubbfish.net/vs_projects/Zway-Bot</PackageProjectUrl>
<RepositoryUrl>https://git.blubbfish.net/vs_projects/Zway-Bot.git</RepositoryUrl> <RepositoryUrl>https://git.blubbfish.net/vs_projects/Zway-Bot.git</RepositoryUrl>
<RepositoryType>git</RepositoryType> <RepositoryType>git</RepositoryType>
<PackageReleaseNotes> <PackageReleaseNotes>
1.8.3 - 2022-01-20 - Shutdown working
1.8.2 - 2022-01-19 - Logging better 1.8.2 - 2022-01-19 - Logging better
1.8.1 - 2022-01-18 - New Default Configs 1.8.1 - 2022-01-18 - New Default Configs
1.8.0 - 2022-01-16 - Running again 1.8.0 - 2022-01-16 - Running again