This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Внутренняя ошибка сервера: | |
System.InvalidOperationException: Sequence contains no elements | |
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source) | |
at LinqToDB.Linq.Builder.FirstSingleBuilder.FirstSingleContext.<>c__DisplayClass12`1.<BuildQuery>b__c(QueryContext ctx, IDataContextInfo db, Expression expr, Object[] ps) | |
at LinqToDB.Linq.ExpressionQuery`1.System.Linq.IQueryProvider.Execute[TResult](Expression expression) | |
at System.Threading.Tasks.Task`1.InnerInvoke() | |
at System.Threading.Tasks.Task.Execute() | |
--- End of stack trace from previous location where exception was thrown --- | |
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) | |
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parse error response Внутренняя ошибка сервера: | |
System.InvalidOperationException: Handler was not found for request of type Rbp.Notifications.Messages.Commands.SendSms. | |
Container or service locator not configured properly or handlers not registered with your container. ---> Autofac.Core.Registration.ComponentNotRegisteredException: The requested service 'MediatorDependent (MediatR.IAsyncRequestHandler`2[[Rbp.Notifications.Messages.Commands.SendSms, Rbp.Notifications.Messages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[MediatR.Unit, MediatR, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]])' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SomePresenter { | |
ActivityNavigator navigator; | |
... | |
@Overide | |
void onLoad() { | |
subscribe(navigator.observeResult(ChangeFilterRoute.class), | |
filter-> { | |
//handle result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Осуществляет гибридный запрос, в методе происходит объединение данных приходящих с сервера и из кеша | |
* | |
* @param cacheRequest запрос к кешу | |
* @param networkRequestCreator функция, которая должна вернуть запрос к серверу, | |
* Integer параметр этой функции определяет {@link QueryMode} | |
* @param <T> тип возвращаемого значения | |
*/ | |
protected <T> Observable<T> hybridQuery(Observable<T> cacheRequest, | |
Func1<Integer, Observable<T>> networkRequestCreator) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.avs.express.android.interactor.common; | |
/** | |
* Базовый класс репозитория | |
*/ | |
public class BaseRepository { | |
private ConnectionQualityProvider connectionQualityProvider; | |
public BaseRepository(ConnectionQualityProvider connectionQualityProvider) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.agna.auto.notify.adapter; | |
import android.support.v7.util.DiffUtil; | |
import android.support.v7.widget.RecyclerView; | |
import java.util.ArrayList; | |
import java.util.List; | |
public abstract class AutoNotifyAdapter<VH extends RecyclerView.ViewHolder> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Базвый нафигатор фрагметов | |
* | |
* @param <T> | |
*/ | |
abstract class BaseFragmentNavigator<T extends Provider<?>> implements Navigator { | |
protected final T provider; | |
BaseFragmentNavigator(T provider) { | |
this.provider = provider; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test |