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

Removed ReactiveUI #661

Merged
merged 7 commits into from
Feb 2, 2017
Merged

Removed ReactiveUI #661

merged 7 commits into from
Feb 2, 2017

Conversation

distantcam
Copy link
Contributor

We're not really using ReactiveUI so I've removed it.

@adamralph
Copy link
Member

👍 @distantcam I always enjoy the smell of a dependency removal 😌

I'm afraid I need to put my 🔰 hat on and ask to be lead by the hand through these changes...

@distantcam
Copy link
Contributor Author

@adamralph Yeah I figured. The changes are "small" in that there's only 2 things being removed (ReactiveList and ReactiveCommand) but then the replacement code is non-trivial.

We can go through it next week.

@HEskandari
Copy link
Contributor

@distantcam This looks good to me. Feel free to merge after your session with Adam.

@adamralph adamralph self-assigned this Dec 6, 2016
Copy link
Member

@adamralph adamralph left a comment

Choose a reason for hiding this comment

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

Please see comments.

@@ -0,0 +1,23 @@
namespace ServiceInsight.ExtensionMethods
Copy link
Member

Choose a reason for hiding this comment

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

This class no longer contains extension methods so I guess it needs to go in another namespace.

}
}

public void RaiseCanExecuteChanged()
Copy link
Member

Choose a reason for hiding this comment

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

Should this be private?

Copy link
Member

Choose a reason for hiding this comment

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

Did we agree on this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought we had.

using System.Threading;
using System.Windows.Input;

class ObservableCommand : ICommand
Copy link
Member

Choose a reason for hiding this comment

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

Does this class need to be thread-safe WRT accessing the isExecuting and latest fields? (I noticed the use Interlocked.Exchange in Dispose.)

Key = h.Key,
Value = h.Value
}));
KeyValues.Add(new MessageHeaderKeyValue { Key = item.Key, Value = item.Value });
Copy link
Member

Choose a reason for hiding this comment

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

Does it matter that we are no longer batching these changes up into a single change notification?

Copy link
Member

Choose a reason for hiding this comment

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

As discussed, this is OK.

@adamralph adamralph removed their assignment Dec 8, 2016
@distantcam
Copy link
Contributor Author

@adamralph Made the changes as discussed in Lisbon. Please review.

@adamralph adamralph self-assigned this Jan 24, 2017
CanExecuteChanged?.Invoke(this, EventArgs.Empty);
}

public void Dispose()
Copy link
Member

Choose a reason for hiding this comment

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

I just realised that this class does not implement IDisposable and this method has no callers, so it's redundant. Should we remove it, or should this class be IDisposable?

}
}

public void RaiseCanExecuteChanged()
Copy link
Member

Choose a reason for hiding this comment

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

Did we agree on this?

@adamralph adamralph removed their assignment Jan 27, 2017
@adamralph adamralph assigned adamralph and distantcam and unassigned adamralph Jan 30, 2017
@distantcam
Copy link
Contributor Author

@adamralph Please review

@adamralph adamralph merged commit 02845dd into master Feb 2, 2017
@adamralph adamralph deleted the removing-rxui branch February 2, 2017 08:41
@adamralph adamralph added this to the 1.6.1 milestone Feb 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants