Exemplo n.º 1
0
		public NestWebService() {
			_deserializer = ServiceContainer.GetService<INestWebServiceDeserializer>();
			_sessionProvider = ServiceContainer.GetService<ISessionProvider>();
			_analyticsService = ServiceContainer.GetService<IAnalyticsService>();
			_webRequestProvider = ServiceContainer.GetService<IWebRequestProvider>();
			_timestampProvider = ServiceContainer.GetService<ITimestampProvider>();
		}
Exemplo n.º 2
0
 public NestWebService()
 {
     _deserializer       = ServiceContainer.GetService <INestWebServiceDeserializer>();
     _sessionProvider    = ServiceContainer.GetService <ISessionProvider>();
     _analyticsService   = ServiceContainer.GetService <IAnalyticsService>();
     _webRequestProvider = ServiceContainer.GetService <IWebRequestProvider>();
     _timestampProvider  = ServiceContainer.GetService <ITimestampProvider>();
 }
Exemplo n.º 3
0
        private Client()
        {
            IComponentProvider container = UrsaConfigurationSection.InitializeComponentProvider();

            _webRequestProvider = (from webRequestProvider in container.ResolveAll <IWebRequestProvider>()
                                   from supportedProtocol in webRequestProvider.SupportedProtocols
                                   join allowedProtocol in AllowedProtocols on supportedProtocol equals allowedProtocol
                                   select webRequestProvider).FirstOrDefault();
            if (_webRequestProvider == null)
            {
                throw new InvalidOperationException("Cannot create an HTTP client without proper web request provider.");
            }

            _converterProvider = container.Resolve <IConverterProvider>();
            _resultBinder      = container.Resolve <IResultBinder <RequestInfo> >();
        }
Exemplo n.º 4
0
 public AuthorizationRemoteCallService(
     IConfiguration configuration,
     IWebRequestProvider webRequestProvider
     ) : base(configuration, webRequestProvider)
 {
 }
Exemplo n.º 5
0
 public IndexModel(IWebRequestProvider routeProvider)
 {
     _busRouteProvider = routeProvider;
 }
Exemplo n.º 6
0
 public void Teardown()
 {
     _webRequestProvider = null;
 }
Exemplo n.º 7
0
 public void Setup()
 {
     _webRequestProvider = new WebRequestProvider();
 }
Exemplo n.º 8
0
 public BaseRemoteCallService(IConfiguration configuration, IWebRequestProvider requestService)
 {
     _configuration  = configuration;
     _requestService = requestService;
 }
Exemplo n.º 9
0
 public EmployeeRemoteCallService(
     IConfiguration configuration,
     IWebRequestProvider webRequestProvider
     ) : base(configuration, webRequestProvider)
 {
 }