public TransitionCommitter( IFabricConnectorSelector fabricConnectorSelector, IRoutineCompletionNotifier routineCompletionNotifier) { _fabricConnectorSelector = fabricConnectorSelector; _routineCompletionNotifier = routineCompletionNotifier; }
public HttpRequestHandler( ICommunicationModelProvider communicationModelProvider, IDomainServiceProvider domainServiceProvider, IRoutineMethodResolver routineMethodResolver, IMethodInvokerFactory methodInvokerFactory, ISerializerFactorySelector serializerFactorySelector, IEnumerable <IEventDispatcher> eventDispatchers, IUniqueIdGenerator idGenerator, ITransitionCommitter transitionCommitter, IRoutineCompletionNotifier routineCompletionNotifier, IEnumerable <IHttpIntentPreprocessor> intentPreprocessors, IEnumerable <IRoutineTransitionAction> transitionActions, ITransitionUserContext transitionUserContext) { _communicationModelProvider = communicationModelProvider; _domainServiceProvider = domainServiceProvider; _routineMethodResolver = routineMethodResolver; _methodInvokerFactory = methodInvokerFactory; _eventDispatcher = eventDispatchers.FirstOrDefault(); _idGenerator = idGenerator; _transitionCommitter = transitionCommitter; _routineCompletionNotifier = routineCompletionNotifier; _intentPreprocessor = new AggregateHttpIntentPreprocessor(intentPreprocessors); _transitionActions = transitionActions; _transitionUserContext = transitionUserContext; _dasyncJsonSerializer = serializerFactorySelector.Select("dasync+json").Create(); JsonSettings.Converters.Add(new EntityProjectionConverter(communicationModelProvider.Model)); }
public ProxyMethodExecutor( ITransitionScope transitionScope, IRoutineMethodIdProvider routineMethodIdProvider, IEventIdProvider eventIdProvider, INumericIdGenerator numericIdGenerator, ITransitionCommitter transitionCommitter, IRoutineCompletionNotifier routineCompletionNotifier, IEventSubscriber eventSubscriber) { _transitionScope = transitionScope; _routineMethodIdProvider = routineMethodIdProvider; _eventIdProvider = eventIdProvider; _numericIdGenerator = numericIdGenerator; _transitionCommitter = transitionCommitter; _routineCompletionNotifier = routineCompletionNotifier; _eventSubscriber = eventSubscriber; }
public HttpRequestHandler( ISerializerProvider serializerProvider, IUniqueIdGenerator idGenerator, IRoutineCompletionNotifier routineCompletionNotifier, IServiceResolver serviceResolver, IMethodResolver methodResolver, ILocalMethodRunner localTransitionRunner) { _idGenerator = idGenerator; _routineCompletionNotifier = routineCompletionNotifier; _serviceResolver = serviceResolver; _methodResolver = methodResolver; _localTransitionRunner = localTransitionRunner; _serializerProvider = serializerProvider; _jsonSerializer = _serializerProvider.GetSerializer("json"); }
public ProxyMethodExecutor( ITransitionScope transitionScope, IMethodIdProvider routineMethodIdProvider, IEventIdProvider eventIdProvider, IUniqueIdGenerator numericIdGenerator, IRoutineCompletionNotifier routineCompletionNotifier, IEventSubscriber eventSubscriber, ICommunicationSettingsProvider communicationSettingsProvider, IMethodInvokerFactory methodInvokerFactory, ISingleMethodInvoker singleMethodInvoker, ISingleEventPublisher singleEventPublisher) { _transitionScope = transitionScope; _routineMethodIdProvider = routineMethodIdProvider; _eventIdProvider = eventIdProvider; _idGenerator = numericIdGenerator; _routineCompletionNotifier = routineCompletionNotifier; _eventSubscriber = eventSubscriber; _communicationSettingsProvider = communicationSettingsProvider; _methodInvokerFactory = methodInvokerFactory; _singleMethodInvoker = singleMethodInvoker; _singleEventPublisher = singleEventPublisher; }