Created
June 5, 2019 21:47
-
-
Save mjrousos/001ea44f6f5e2a267a3eba934c66b9d6 to your computer and use it in GitHub Desktop.
WPF Migration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ItemGroup> | |
<PackageReference Include="Castle.Windsor"> | |
<Version>4.1.1</Version> | |
</PackageReference> | |
<PackageReference Include="MahApps.Metro"> | |
<Version>1.6.5</Version> | |
</PackageReference> | |
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers"> | |
<Version>2.9.2</Version> | |
</PackageReference> | |
<PackageReference Include="Nito.AsyncEx"> | |
<Version>5.0.0</Version> | |
</PackageReference> | |
</ItemGroup> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<None Update="BeanTrader.pfx"> | |
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |
</None> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Content Include="Resources\Themes\Default.Accent.xaml"> | |
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |
</Content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public BeanTraderServiceClient(System.ServiceModel.InstanceContext callbackInstance) : | |
base(callbackInstance, EndpointConfiguration.CustomBinding_BeanTraderService) | |
{ } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project> | |
<PropertyGroup> | |
<BaseOutputPath>$(MSBuildProjectDirectory)/out/$(MSBuildProjectName)/bin</BaseOutputPath> | |
<BaseIntermediateOutputPath>$(MSBuildProjectDirectory)/out/$(MSBuildProjectName)/obj</BaseIntermediateOutputPath> | |
</PropertyGroup> | |
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Task.Run(() => | |
{ | |
return userInfoRetriever.Invoke(); | |
}).ContinueWith(result => | |
{ | |
// BeginInvoke's callback is replaced with ContinueWith | |
var task = result.ConfigureAwait(false); | |
CurrentTrader = task.GetAwaiter().GetResult(); | |
}, TaskScheduler.Default); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment