Пример #1
0
        public DealService(IDealWriter writer, IDealReader reader)
        {
            if (writer == null) { throw new ArgumentNullException(nameof(writer)); }
            if (reader == null) { throw new ArgumentNullException(nameof(reader)); }

            _writer = writer;
            _reader = reader;
        }
Пример #2
0
        public DealService(IDealWriter writer, IDealReader reader)
        {
            if (writer == null)
            {
                throw new ArgumentNullException(nameof(writer));
            }
            if (reader == null)
            {
                throw new ArgumentNullException(nameof(reader));
            }

            _writer = writer;
            _reader = reader;
        }
Пример #3
0
 public DealCaching(IDealReader reader, IDealWriter writer)
 {
     _reader = reader;
     _writer = writer;
     _cache = ImmutableDictionary<string, Maybe<Deal>>.Empty;
 }
Пример #4
0
 public DealCaching(IDealReader reader, IDealWriter writer)
 {
     _reader = reader;
     _writer = writer;
     _cache  = ImmutableDictionary <string, Maybe <Deal> > .Empty;
 }
 public DealServiceLogger(IDealReader reader, IDealWriter writer)
 {
     _reader = reader;
     _writer = writer;
 }
Пример #6
0
 public DealServiceLogger(IDealReader reader, IDealWriter writer)
 {
     _reader = reader;
     _writer = writer;
 }