Beispiel #1
0
        public RestClientMSAL(IApiConfiguration configuration, IIDSConfiguration idsConfiguration, IRestConfiguration restConfiguration, IAdAuthService adAuthService)
            : base(configuration)
        {
            _idsConfiguration  = idsConfiguration;
            _restConfiguration = restConfiguration;
            _adAuthService     = adAuthService;

            SerializationSettings = new JsonSerializerSettings
            {
                ReferenceLoopHandling = ReferenceLoopHandling.Ignore,
                MissingMemberHandling = MissingMemberHandling.Ignore,
                DateTimeZoneHandling  = DateTimeZoneHandling.Utc,
                DateFormatHandling    = DateFormatHandling.IsoDateFormat
            };

            DeserializationSettings = SerializationSettings;
        }
 public AuthService(IUserService userService, IAdAuthService adAuthService, IRestClient restClient)
 {
     _userService   = userService;
     _adAuthService = adAuthService;
     _restClient    = restClient;
 }