Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Mapper to Configure Tag prior to initialization #212

Merged
merged 1 commit into from
Jul 27, 2024
Merged

Conversation

timyhac
Copy link
Collaborator

@timyhac timyhac commented Nov 2, 2021

This is a breaking change since it requires IPlcMapper implementations to implement a new method.
As such it will need to go into a 2.x release

@jkoplo
Copy link
Member

jkoplo commented Dec 22, 2021

Where do we stand on this? I don't think we came to a firm conclusion in #211.

@timyhac
Copy link
Collaborator Author

timyhac commented Dec 22, 2021

I haven't yet done any of the investigation I said I would do..

@jkoplo
Copy link
Member

jkoplo commented Dec 22, 2021

Do you think we could cut a stable/beta release (1.1.0 with #93) and get this into a later release?

@timyhac timyhac mentioned this pull request Sep 30, 2022
@@ -72,6 +72,11 @@ virtual protected void EncodeArray(Tag tag, T[] values)
T[,,] IPlcMapper<T[,,]>.Decode(Tag tag) => DecodeArray(tag).To3DArray<T>(ArrayDimensions[0], ArrayDimensions[1], ArrayDimensions[2]);

void IPlcMapper<T[,,]>.Encode(Tag tag, T[,,] value) => EncodeArray(tag, value.To1DArray());

public void Configure(Tag tag)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be virtual so we can override it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@timyhac timyhac merged commit e91496e into master Jul 27, 2024
2 checks passed
@timyhac timyhac deleted the #211 branch July 27, 2024 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants