Пример #1
0
        public WxTeamsApi(IWxTeamsClient teamsClient, IJsonDeserializer serializer,
                          ILogger <WxTeamsApi> logger)
        {
            _logger     = logger ?? throw new ArgumentNullException(nameof(logger));
            TeamsClient = teamsClient ?? throw new ArgumentNullException(nameof(teamsClient));

            if (serializer == null)
            {
                throw new ArgumentNullException(nameof(serializer));
            }

            serializer.SetApi(this);
        }