public FileBasedFabricConnectorFactory( ISerializerFactorySelector serializerFactorySelector, INumericIdGenerator numericIdGenerator) { _serializerFactorySelector = serializerFactorySelector; _numericIdGenerator = numericIdGenerator; }
public AzureFunctionsFabric( ISerializerFactorySelector serializerFactorySelector, INumericIdGenerator idGenerator, ITransitionRunner transitionRunner, IAzureWebJobsEnviromentalSettings azureWebJobsEnviromentalSettings, ICloudStorageAccountFactory cloudStorageAccountFactory, AzureFunctionsFabricSettings settings, IServiceProxyBuilder serviceProxyBuilder, IRoutineMethodResolver routineMethodResolver, IMethodInvokerFactory methodInvokerFactory, IServiceRegistry serviceRegistry) { _transitionRunner = transitionRunner; _idGenerator = idGenerator; _settings = settings; _serviceProxyBuilder = serviceProxyBuilder; _routineMethodResolver = routineMethodResolver; _methodInvokerFactory = methodInvokerFactory; _serviceRegistry = serviceRegistry; #warning Need configurable serializer // Hard-code this for now. _defaultSerializer = serializerFactorySelector.Select("dasyncjson").Create(); _storageAccountConnectionString = azureWebJobsEnviromentalSettings.DefaultStorageConnectionString; _storageAccount = cloudStorageAccountFactory.Create(_storageAccountConnectionString); //#warning make sure that site name is alpha-numeric and does not start with a number // var prefix = azureWebJobsEnviromentalSettings.WebSiteName.ToLowerInvariant(); var prefix = ""; _routinesTable = _storageAccount.TableClient.GetTableReference(prefix + "routines"); _servicesTable = _storageAccount.TableClient.GetTableReference(prefix + "services"); }
public FileBasedFabricConnectorFactory( ISerializerFactorySelector serializerFactorySelector, IUniqueIdGenerator idGenerator) { _serializerFactorySelector = serializerFactorySelector; _idGenerator = idGenerator; }
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 PlatformHttpClientProvider( ISerializerFactorySelector serializerFactorySelector, IEnumerable <IServiceHttpConfigurator> serviceHttpConfigurators, DefaultServiceHttpConfigurator defaultServiceHttpConfigurator) { _serializerFactorySelector = serializerFactorySelector; _serviceHttpConfigurator = serviceHttpConfigurators.FirstOrDefault() ?? defaultServiceHttpConfigurator; }
public RoutingSerializer(ISerializerFactorySelector serializerSelector) { if (serializerSelector == null) { throw new ArgumentNullException(nameof(serializerSelector)); } this.serializerSelector = serializerSelector; }
public AzureStorageFabricConnectorFactory( ISerializerFactorySelector serializerFactorySelector, INumericIdGenerator idGenerator, ICloudStorageAccountFactory cloudStorageAccountFactory, IStorageAccontConnectionStringResolver storageAccontConnectionStringResolver) { _serializerFactorySelector = serializerFactorySelector; _idGenerator = idGenerator; _cloudStorageAccountFactory = cloudStorageAccountFactory; _storageAccontConnectionStringResolver = storageAccontConnectionStringResolver; }
public PlatformHttpClient( IServiceDefinition serviceDefinition, ISerializerFactorySelector serializerFactorySelector, IServiceHttpConfigurator serviceHttpConfigurator) { _serviceDefinition = serviceDefinition; _serializerFactorySelector = serializerFactorySelector; _serviceHttpConfigurator = serviceHttpConfigurator; _httpClient = new HttpClient(); serviceHttpConfigurator.ConfigureBase(_httpClient, _serviceDefinition); _dasyncJsonSerializer = serializerFactorySelector.Select("dasync+json").Create(); }
public RoutingSerializer(ISerializerFactorySelector serializerSelector) { if (serializerSelector == null) throw new ArgumentNullException(nameof(serializerSelector)); this.serializerSelector = serializerSelector; }
public InMemoryFabricConnectorFactory(ISerializerFactorySelector serializerFactorySelector) { _serializerFactorySelector = serializerFactorySelector; }
public FileBasedFabricConnectorFactory(ISerializerFactorySelector serializerFactorySelector) { _serializerFactorySelector = serializerFactorySelector; }