Beispiel #1
0
 public UserService(IDistributedCache cache,// IHttpContextAccessor httpContext,
                    IOptions <AppOptions> options, ISecurityDataServiceConnector connector)
 {
     _cache = cache;
     //_httpContext = httpContext;
     _options    = options.Value;
     _connection = connector.GetConnection();
 }
 public DataConnection(
     ISqlDataConnection sqlDataConnection,
     IDataConnectionConfigProvider dataConnectionConfigProvider,
     IClientConnectionInfoProvider clientConnectionInfoProvider,
     IIpAddressUtils ipAddressUtils)
 {
     _sqlDataConnection            = sqlDataConnection;
     _dataConnectionConfigProvider = dataConnectionConfigProvider;
     _clientConnectionInfoProvider = clientConnectionInfoProvider;
     _ipAddressUtils = ipAddressUtils;
 }