C# Класс Microsoft.HockeyApp.FeedbackManager

Provides the methods to integrate HockeyApp Feedback in your app. Don't use directly. Use HockeyClient.Current - extension methods
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_instance FeedbackManager

Private Properties

Свойство Тип Описание
AddFeedbackThread void
ClearMessageCacheAsync System.Threading.Tasks.Task
FeedbackManager System.Windows.Navigation
GetDataContextNavigatedToFormPage Task
GetDataContextNavigatedToImagePage Task
GetDataContextNavigatedToListPage Task
HandleSentMessage void
LoadFeedbackThreadsAsync Task>
RefreshFeedbackThreadVMAsync System.Threading.Tasks.Task
SaveFeedbackThreadTokens void
StoreDataIfNeeded System.Threading.Tasks.Task
TryRestoreFeedbackThread Task

Открытые методы

Метод Описание
Configure ( string toptitle = null, string initialUsername = null, string initialEmail = null ) : void

Optional. Only needed if you want to set an initial toptitle for the UI or an intitial email and username. A Crashhandler has to be configured before usage of the Feedbackmanager!

GetActiveThreadAsync ( bool forceReload = false ) : Task

Gets the active feedback thread with all messages from the HockeyApp server (cached) (you should not need this is you use the provided feedpage page)

Logout ( ) : void

Deletes all persistently stored data like FeedbackThreadToken, UserName, etc. Call in your app if user logs out.

NavigateToFeedbackUI ( System.Windows.Navigation.NavigationService navigationService = null ) : void

Navigates to the feedback page

SendFeedback ( string message, string email, string subject, string name, IEnumerable attachments ) : Task

Send a feedback message to the server (you should not need this if you use the provided feedback page)

Защищенные методы

Метод Описание
ForgetThreadInfos ( ) : void
InitializeIfNeeded ( ) : System.Threading.Tasks.Task
PersistThreadMetaInfos ( string token, string subject, string user, string email ) : void

Приватные методы

Метод Описание
AddFeedbackThread ( FeedbackThreadVM fbThreadVM ) : void
ClearMessageCacheAsync ( ) : System.Threading.Tasks.Task
FeedbackManager ( ) : System.Windows.Navigation
GetDataContextNavigatedToFormPage ( System.Windows.Navigation.NavigationEventArgs args ) : Task
GetDataContextNavigatedToImagePage ( System.Windows.Navigation.NavigationEventArgs args, System.Windows.Controls.Canvas canvas, Image showArea ) : Task
GetDataContextNavigatedToListPage ( System.Windows.Navigation.NavigationEventArgs args, System.Windows.Controls.ListBox messageList ) : Task
HandleSentMessage ( IFeedbackMessage sentMsg ) : void
LoadFeedbackThreadsAsync ( ) : Task>
RefreshFeedbackThreadVMAsync ( FeedbackThreadVM threadVM ) : System.Threading.Tasks.Task
SaveFeedbackThreadTokens ( ) : void
StoreDataIfNeeded ( ) : System.Threading.Tasks.Task
TryRestoreFeedbackThread ( ) : Task

Описание методов

Configure() публичный Метод

Optional. Only needed if you want to set an initial toptitle for the UI or an intitial email and username. A Crashhandler has to be configured before usage of the Feedbackmanager!
public Configure ( string toptitle = null, string initialUsername = null, string initialEmail = null ) : void
toptitle string Title shown over the header on the feedback page
initialUsername string Initial username to show in form
initialEmail string Initial email to show in form
Результат void

ForgetThreadInfos() защищенный Метод

protected ForgetThreadInfos ( ) : void
Результат void

GetActiveThreadAsync() публичный Метод

Gets the active feedback thread with all messages from the HockeyApp server (cached) (you should not need this is you use the provided feedpage page)
public GetActiveThreadAsync ( bool forceReload = false ) : Task
forceReload bool [optional] force reload of thread messages
Результат Task

InitializeIfNeeded() защищенный Метод

protected InitializeIfNeeded ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

Logout() публичный Метод

Deletes all persistently stored data like FeedbackThreadToken, UserName, etc. Call in your app if user logs out.
public Logout ( ) : void
Результат void

NavigateToFeedbackUI() публичный Метод

Navigates to the feedback page
public NavigateToFeedbackUI ( System.Windows.Navigation.NavigationService navigationService = null ) : void
navigationService System.Windows.Navigation.NavigationService
Результат void

PersistThreadMetaInfos() защищенный Метод

protected PersistThreadMetaInfos ( string token, string subject, string user, string email ) : void
token string
subject string
user string
email string
Результат void

SendFeedback() публичный Метод

Send a feedback message to the server (you should not need this if you use the provided feedback page)
public SendFeedback ( string message, string email, string subject, string name, IEnumerable attachments ) : Task
message string message text
email string email address of sender
subject string subject of message
name string name of sender
attachments IEnumerable The attachments.
Результат Task

Описание свойств

_instance защищенное статическое свойство

protected static FeedbackManager,Microsoft.HockeyApp _instance
Результат FeedbackManager