Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

gsino
Copy link

@gsino gsino commented Sep 7, 2021

Relates

#994
#1192

Overview

The two projects exists.

  • MyApp.Models.csproj
  • MyApp.Referenced.csproj that referenced by MyApp.Models.csproj

At this time, mpc will generate IUnionObjectFormatter, UnionDerived1Formatter and UnionDerived2Formatter.

in MyApp.Unity.csproj
[MessagePackObject]
public class MyObject
{
  [Key(0)]
  public IUnionObject Value { get; set; }
}
in MyApp.Referenced.csproj
[Union(0, typeof(UnionDerived1))]
[Union(1, typeof(UnionDerived2))]
public interface IUnionObject
{
  string Name { get; }
}

[MessagePackObject]
public class UnionDerived1 : IUnionObject
{
  [Key(0)]
  public int Id { get; set; }
  [Key(1)]
  public string Name { get; set; }
}

[MessagePackObject]
public class UnionDerived2 : IUnionObject
{
  [Key(0)]
  public string Name { get; set; }
}

goichi.shinohara added 4 commits September 7, 2021 18:54
- Union_Defined_In_TargetProject is currentry success
- Union_Defined_In_ReferencedProject is currentry failed
Match the writing style to CollectUnion method
@gsino
Copy link
Author

gsino commented Nov 17, 2021

Hello.
Is there anything I need to do to continue this pull request?

@pCYSl5EDgo
Copy link
Contributor

It is necessary to pass the CI.

Empty commit to check CI again
@gsino
Copy link
Author

gsino commented Dec 10, 2021

I ran the CI check again and it passed.
I can't confirm the details, but I think the last failure was a problem on the CI side.

@pCYSl5EDgo
Copy link
Contributor

Yes, CI has a buggy test.
Then we should wait AArnott for his review...

@gsino
Copy link
Author

gsino commented Dec 12, 2021

I got it.
Thank you!

@github-actions
Copy link
Contributor

This pull request is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@gsino
Copy link
Author

gsino commented Mar 23, 2022

@neuecc
Can you confirm this Pull Request?

@neuecc neuecc reopened this Mar 29, 2022
@github-actions github-actions bot closed this Apr 4, 2022
@gsino gsino mentioned this pull request Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants