public override void ViewDisappeared() { base.ViewDisappeared(); _token?.Dispose(); _token = null; }
protected override void OnDisappearing() { base.OnDisappearing(); _token?.Dispose(); _token = null; }
public override void Unbind() { if (_token != null) { _token.Dispose(); _token = null; } base.Unbind(); }
protected override void OnDestroy() { base.OnDestroy(); // Dispose and remove references for GC _newMessageToken.Dispose(); _newMessageToken = null; _recyclerView = null; }
protected override void OnDetachingFrom(BindableObject bindable) { if (_token != null) { _token.Dispose(); } _sliderViews = null; _messenger = null; base.OnDetachingFrom(bindable); }
public override void Unbind() { base.Unbind(); if (_subscribtionToken != null) { _subscribtionToken.Dispose(); _subscribtionToken = null; } }
public override void ViewWillDisappear(bool animated) { base.ViewWillDisappear(animated); //_didAppearNotification.Dispose(); //ScrollToTop(false); _groupJoinedToken.Dispose(); _groupJoinedToken = null; }
public override void Unbind() { base.Unbind(); if (_languageToken != null) { Messenger.Unsubscribe <LanguageChangedMessage>(_languageToken); _languageToken.Dispose(); _languageToken = null; } }
public override void ViewDisappeared() { base.ViewDisappeared(); _token?.Dispose(); _token = null; _tokenRefreshLink?.Dispose(); _tokenRefreshLink = null; _tokenRefreshMarker?.Dispose(); _tokenRefreshMarker = null; }
public CommunicationViewModel(IMvxFileStore fileStore, IMvxMessenger messenger) { _fileStore = fileStore; //Se inscreve para receber mensagens de um determinado tipo _token = messenger.Subscribe <CommunicationMessage>(OnCommunicationMessage); _token.Dispose(); //Exemplo de como enviar uma mensagem. Sim, é simples assim. //messenger.Publish(new CommunicationMessage(this)); }
public override void ViewDisappeared() { base.ViewDisappeared(); _token?.Dispose(); _token = null; _tokenFromMap?.Dispose(); _tokenFromMap = null; _tokenRefresh?.Dispose(); _tokenRefresh = null; }
public override void ViewDisappeared() { base.ViewDisappeared(); _token?.Dispose(); _token = null; _tokenDebug?.Dispose(); _tokenDebug = null; _tokenOps?.Dispose(); _tokenOps = null; }
protected virtual void Dispose(bool disposing) { if (_disposed) { return; } _languageToken?.Dispose(); _disposed = true; }
protected override void OnDestroy() { base.OnDestroy(); if (_groupJoinedToken == null) { return; } _groupJoinedToken.Dispose(); _groupJoinedToken = null; }
protected QryptoViewModel(IMvxMessenger messenger, IPopupHelper helper) { _helper = helper; _messenger = messenger; _token = _messenger.Subscribe <RequestFailedMessage>(OnRequestFailed, MvxReference.Strong); CleaningUp += () => { if (_token == null) { return; } _token.Dispose(); _token = null; }; }
private void RemoveHandlers() { _addMessageSub.Dispose(); _addMessageSub = null; _updateConversationSub.Dispose(); _updateConversationSub = null; _didAppearNotification.Dispose(); _didAppearNotification = null; _textFieldChangedNotification.Dispose(); _textFieldChangedNotification = null; ChatInput.ShouldReturn = null; }
public override void ViewDisappeared() { base.ViewDisappeared(); _token?.Dispose(); _token = null; _tokenReload?.Dispose(); _tokenReload = null; _tokenLiveLocation?.Dispose(); _tokenLiveLocation = null; _tokenLinkUpdated?.Dispose(); _tokenLinkUpdated = null; _tokenMarkerUpdated?.Dispose(); _tokenMarkerUpdated = null; _tokenRefreshAllAgentsLocations?.Dispose(); _tokenRefreshAllAgentsLocations = null; }
public ConversationViewModel(IStorageService storageService, IMessageService messageService, IMvxMessenger messenger, IPopupHelper helper) : base(messenger, helper) { _storageService = storageService; _messageService = messageService; _token = _messenger.Subscribe <ContentReceivedMessage>(OnNotificationReceived, MvxReference.Strong); SendMessageCommand = new MvxCommand(SendMessageCommandAction, () => !string.IsNullOrWhiteSpace(MessageBody)); CleaningUp += () => { if (_token == null) { return; } _token.Dispose(); _token = null; }; }
public override void Unbind() { base.Unbind(); if (_userInfoChangedSubscriptionToken != null) { _userInfoChangedSubscriptionToken.Dispose(); _userInfoChangedSubscriptionToken = null; } if (_userTypeChangedSubscriptionToken != null) { _userTypeChangedSubscriptionToken.Dispose(); _userTypeChangedSubscriptionToken = null; } if (_languageToken != null) { _languageToken.Dispose(); _languageToken = null; } }
public override void ViewWillDisappear(bool animated) { base.ViewWillDisappear(animated); if (IsMovingFromParentViewController) { ViewControllerSelected -= OnViewControllerSelected; if (_unreadNotificationsSubscription != null) { _unreadNotificationsSubscription.Dispose(); _unreadNotificationsSubscription = null; } if (_unreadChatMessageSubscription != null) { _unreadChatMessageSubscription.Dispose(); _unreadChatMessageSubscription = null; } } }
public override void ViewWillDisappear(bool animated) { base.ViewWillDisappear(animated); if (IsMovingFromParentViewController) { Input.ShouldReturn = null; Send.TouchUpInside -= SendOnTouchUpInside; _didAppearNotification.Dispose(); _didAppearNotification = null; _textFieldChangeNotification.Dispose(); _textFieldChangeNotification = null; _newCommentToken.Dispose(); _newCommentToken = null; } }
public static void DestoryTokens() { if (_cancelToken != null) { _cancelToken.Dispose(); } _cancelToken = null; if (_errorToken != null) { _errorToken.Dispose(); } _errorToken = null; if (_successToken != null) { _successToken.Dispose(); } _successToken = null; }
protected override void Dispose(bool disposing) { _token?.Dispose(); _token = null; base.Dispose(disposing); }
public void Unsubscribe(MvxSubscriptionToken token) { RemoveDisposable(token); token.Dispose(); }
public void Dispose() { _token.Dispose(); }
public void Dispose() { _subscriptionToken?.Dispose(); }
public void Dispose() { _intervalToken?.Dispose(); _messengerToken?.Dispose(); }
public void Stop() { IsObserving = false; subscriptionToken?.Dispose(); }
public void Dispose() { _notificationRegisterMessageToken.Dispose(); _errorMessageToken.Dispose(); _notificationsToken.Dispose(); }