Skip to content

Instantly share code, notes, and snippets.

@mjrousos
Created June 5, 2019 21:47
Show Gist options
  • Save mjrousos/001ea44f6f5e2a267a3eba934c66b9d6 to your computer and use it in GitHub Desktop.
Save mjrousos/001ea44f6f5e2a267a3eba934c66b9d6 to your computer and use it in GitHub Desktop.
WPF Migration
<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>
<None Update="BeanTrader.pfx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<Content Include="Resources\Themes\Default.Accent.xaml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
public BeanTraderServiceClient(System.ServiceModel.InstanceContext callbackInstance) :
base(callbackInstance, EndpointConfiguration.CustomBinding_BeanTraderService)
{ }
<Project>
<PropertyGroup>
<BaseOutputPath>$(MSBuildProjectDirectory)/out/$(MSBuildProjectName)/bin</BaseOutputPath>
<BaseIntermediateOutputPath>$(MSBuildProjectDirectory)/out/$(MSBuildProjectName)/obj</BaseIntermediateOutputPath>
</PropertyGroup>
</Project>
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