Skip to content

Commit

Permalink
Merge pull request #6 from Ali-YousefiTelori/develop
Browse files Browse the repository at this point in the history
update packages
  • Loading branch information
Ali-YousefiTelori authored Nov 13, 2023
2 parents f8af658 + 046d049 commit 1bbc509
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using EasyMicroservices.UI.Core.Interfaces;
using EasyMicroservices.ServiceContracts.Exceptions;
using EasyMicroservices.UI.Core.Interfaces;
using System;
using System.Windows.Input;

Expand Down Expand Up @@ -83,6 +84,10 @@ public virtual void Execute(object parameter)
}
_execute(parameter);
}
catch (InvalidResultOfMessageContractException ex)
{
_busyViewModel?.DisplayFetchError(ex.MessageContract.Error);
}
catch (Exception ex)
{
_busyViewModel?.OnError(ex);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using EasyMicroservices.UI.Core.Interfaces;
using EasyMicroservices.ServiceContracts.Exceptions;
using EasyMicroservices.UI.Core.Interfaces;
using System;
using System.Threading.Tasks;
using System.Windows.Input;
Expand Down Expand Up @@ -89,6 +90,10 @@ async Task InternalExecute(object parameter)
{
await _execute(parameter);
}
catch (InvalidResultOfMessageContractException ex)
{
_busyViewModel?.DisplayFetchError(ex.MessageContract.Error);
}
catch (Exception ex)
{
_busyViewModel?.OnError(ex);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Platforms>AnyCPU;x64;x86</Platforms>
<Authors>EasyMicroservices</Authors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>0.0.0.5</Version>
<Version>0.0.0.6</Version>
<Description>Model View View Model</Description>
<Copyright>[email protected]</Copyright>
<PackageTags>mvvm,mvpvm,modelview,modelviewviewmodel</PackageTags>
Expand All @@ -17,7 +17,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="EasyMicroservices.ServiceContracts" Version="0.0.0.17" />
<PackageReference Include="EasyMicroservices.ServiceContracts" Version="0.0.0.18" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using EasyMicroservices.ServiceContracts;
using System;
using System.ComponentModel;
using System.Threading.Tasks;

Expand Down Expand Up @@ -34,5 +35,18 @@ public interface IBusyViewModel : INotifyPropertyChanged
/// <param name="exception"></param>
/// <returns></returns>
Task OnError(Exception exception);
/// <summary>
///
/// </summary>
/// <param name="errorContract"></param>
/// <returns></returns>
Task DisplayFetchError(ErrorContract errorContract);

/// <summary>
///
/// </summary>
/// <param name="message"></param>
/// <returns></returns>
Task DisplayError(string message);
}
}

0 comments on commit 1bbc509

Please sign in to comment.