public UsernamePasswordTokenProvider(ISecureCache secureCache, INetworkInformation networkStatus, ILogger logger, IContainerResolve container) { this.secureCache = secureCache; this.networkStatus = networkStatus; Container = container; Logger = logger; }
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); }
/// <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; }
/// <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; }