Skip to content

Instantly share code, notes, and snippets.

@gshackles
Created November 5, 2012 04:50
Show Gist options
  • Save gshackles/4015397 to your computer and use it in GitHub Desktop.
Save gshackles/4015397 to your computer and use it in GitHub Desktop.
public abstract class ViewModelBase
: MvxViewModel,
IMvxServiceConsumer<ITinyMessengerHub>
{
protected ViewModelBase()
{
MessengerHub = this.GetService<ITinyMessengerHub>();
}
protected ITinyMessengerHub MessengerHub { get; private set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment