Example #1
0
 public MiddleObject(IConfiguration config, ISecondDI second)
 {
     _config        = config;
     _readonly      = _config.GetConnectionString("ReadOnly");
     _writeonly     = _config.GetConnectionString("WriteOnly");
     _currentString = _readonly;
     _second        = second;
 }
Example #2
0
        public async Task <string> GetStringAsync(string value)
        {
            string    _str    = string.Empty;
            ISecondDI _second = _middle.ReturnSecondDI();

            _str = $@"Thread ID : {Thread.CurrentThread.ManagedThreadId}, Message : {value}/n
            Instance HashCode : {this.GetHashCode()}";
            return($"{_str}, {_second.GetHashCode()}");
        }