Ejemplo n.º 1
0
 public UsernamePasswordTokenProvider(ISecureCache secureCache, INetworkInformation networkStatus, ILogger logger, IContainerResolve container)
 {
     this.secureCache   = secureCache;
     this.networkStatus = networkStatus;
     Container          = container;
     Logger             = logger;
 }
Ejemplo n.º 2
0
 public AppPrincipalFactory(INetworkInformation networkInformation, ISecureCache claimsCache, ICacheKeyGenerator cacheKeyGenerator, IContainerResolve container, IApplicationContext applicationContext)
 {
     NetworkInformation = networkInformation;
     ClaimsCache        = claimsCache;
     CacheKeyGenerator  = cacheKeyGenerator;
     Container          = container;
     ApplicationContext = applicationContext;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="TimestampCacheProvider"/> class.
        /// </summary>
        /// <param name="storage">The storage for this cacheprovider.</param>
        /// <param name="network">The network.</param>
        /// <param name="synchronizer">The synchronizer.</param>
        /// <param name="areWeCachingThis">The are we caching this.</param>
        public TimestampCacheProvider(IStructuredStorage storage, INetworkInformation network, ISynchronizer synchronizer, Func<Uri, bool> areWeCachingThis = null)
        {
            Contract.Requires<ArgumentNullException>(storage != null, "storage");
            Contract.Requires<ArgumentNullException>(network != null, "network");
            Contract.Requires<ArgumentNullException>(synchronizer != null, "synchronizer");

            this.network = network;
            this.storage = storage;
            this.synchronizer = synchronizer;
            this.areWeCachingThis = areWeCachingThis ?? (u => true);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Instantiates the <see cref="NetInfoModule"/>.
 /// </summary>
 /// <param name="networkInfo">The network information.</param>
 /// <param name="reactContext">The React context.</param>
 public NetInfoModule(INetworkInformation networkInfo, ReactContext reactContext)
     : base(reactContext)
 {
     _networkInfo = networkInfo;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of Ssdp class
 /// </summary>
 /// <param name="networkInformation">network information retriever</param>
 public Ssdp(INetworkInformation networkInformation = null)
 {
     NetworkInformation = networkInformation ?? new NetworkInfo();
 }
 /// <summary>
 /// Instantiates the <see cref="NetInfoModule"/>.
 /// </summary>
 /// <param name="networkInfo">The network information.</param>
 /// <param name="reactContext">The React context.</param>
 public NetInfoModule(INetworkInformation networkInfo, ReactContext reactContext)
     : base(reactContext)
 {
     _networkInfo = networkInfo;
 }