public HomeController(IConfiguration configuration, IServiceBusQueue serviceBusQueueHelper, ConfigurationPackage configurationPackage) { IValidationServiceStateful _validationService = ServiceProxy.Create <IValidationServiceStateful>( new Uri("fabric:/DCT.ILR.Processing.POC/DCT.ILR.VadationServiceStateful"), new ServicePartitionKey(0)); ConfigurationPackage _configurationPackage = configurationPackage; ServiceProxyFactory serviceProxyFactory = new ServiceProxyFactory( (c) => new FabricTransportServiceRemotingClientFactory( serializationProvider: new ServiceRemotingJsonSerializationProvider())); _validationResultsService = serviceProxyFactory.CreateServiceProxy <IValidationServiceResults>( new Uri("fabric:/DCT.ILR.Processing.POC/DCT.ILR.Data"), new ServicePartitionKey(0L), TargetReplicaSelector.PrimaryReplica, "dataServiceRemotingListener"); _serviceBusQueueHelper = serviceBusQueueHelper; StorageAccountName = _configurationPackage.Settings.Sections["StorageAccount"].Parameters["IlrFileStorageAccontName"].Value; StorageAccountKey = _configurationPackage.Settings.Sections["StorageAccount"].Parameters["IlrFileStorageAccontKey"].Value; }
public HomeController(IConfiguration configuration, IServiceBusQueue serviceBusQueueHelper) { _validationService = ServiceProxy.Create <IValidationServiceStateful>( new Uri("fabric:/DCT.ILR.Processing.POC/DCT.ILR.VadationServiceStateful"), new ServicePartitionKey(0)); _configuration = configuration; _serviceProxyFactory = new ServiceProxyFactory( (c) => new FabricTransportServiceRemotingClientFactory( serializationProvider: new ServiceRemotingJsonSerializationProvider())); _fundingCalcResultsService = _serviceProxyFactory.CreateServiceProxy <IFundingCalcResults>( new Uri("fabric:/DCT.ILR.Processing.POC/DCT.ILR.Data"), new ServicePartitionKey(0), TargetReplicaSelector.RandomReplica, "dataServiceRemotingListener"); _serviceBusQueueHelper = serviceBusQueueHelper; }