public UpdatedContentEventArgs(EContentUpdateType i_ContentUpdateType = EContentUpdateType.None, ContentPage i_UpdatedContent = null, IBindableVM i_UpdatedVM = null) { UpdatedContent = i_UpdatedContent; UpdatedVM = i_UpdatedVM; ContentUpdateType = i_ContentUpdateType; if (i_UpdatedContent == null && isValidForPushRequest(i_ContentUpdateType)) { throw new ArgumentException("Incorrect use of UpdatedContentEventArgs"); } }
private bool isValidForPushRequest(EContentUpdateType i_ContentUpdateType) { return(i_ContentUpdateType == EContentUpdateType.Push || i_ContentUpdateType == EContentUpdateType.PushAsync); }