コード例 #1
0
        public ValidationServiceStateless(StatelessServiceContext context, ILifetimeScope parentLifeTimeScope,
                                          ILogger logger, ITopicHelper topicHelper, ServiceBusOptions seviceBusOptions,
                                          Func <IValidationService> validationServiceFactory, IActorsHelper actorsHelper)
            : base(context)
        {
            _parentLifeTimeScope = parentLifeTimeScope;

            //get config values
            _queueName = seviceBusOptions.QueueName;
            _serviceBusConnectionString = seviceBusOptions.ServiceBusConnectionString;
            _fundingCalcSqlFilterValue  = seviceBusOptions.FundingCalcSqlFilterValue;

            _actorsHelper = actorsHelper;
            //using serviceremoting v2
            _valResultsServiceProxyFactory = new ServiceProxyFactory(
                (c) => new FabricTransportServiceRemotingClientFactory(
                    remotingSettings: FabricTransportRemotingSettings.LoadFrom("DataTransportSettings"),
                    remotingCallbackMessageHandler: null, servicePartitionResolver: null, exceptionHandlers: null,
                    traceId: null,
                    serializationProvider: new ServiceRemotingJsonSerializationProvider()));



//            _logger = logger;
            _topicHelper = topicHelper;

            _validationServiceFactory = validationServiceFactory;
        }
コード例 #2
0
 public MessageDetailsWindowViewModel(ITopicHelper topicHelper       = null,
                                      ILoggingService loggingService = null,
                                      IQueueHelper queueHelper       = null)
 {
     _loggingService = loggingService ?? Locator.Current.GetService <ILoggingService>();
     _topicHelper    = topicHelper ?? Locator.Current.GetService <ITopicHelper>();
     _queueHelper    = queueHelper ?? Locator.Current.GetService <IQueueHelper>();
 }