public AdobeTestController(AdobeRegContext context, IConfiguration configuration, ISlapCrypto crpto, IAdobeGuid adobeGuid) { _context = context; Configuration = configuration; // added to inject configuration sCrypt = crpto; // added to inject crypto aGuid = adobeGuid; // added to inject adobe Guid }
/// <summary> /// Initializes a new instance of the <see cref="T:AdobeReg.Controllers.SignInController"/> class. /// Added to set dependancy injection objects. /// </summary> /// <param name="context">Context.</param> /// <param name="configuration">Configuration.</param> /// <param name="crpto">Crpto.</param> /// <param name="adobeGuid">Adobe GUID.</param> public SignInController(AdobeRegContext context, IConfiguration configuration, ISlapCrypto crpto, IHttpContextAccessor httpContextAccessor) { _context = context; Configuration = configuration; // added to inject configuration sCrypt = crpto; // added to inject crypto _httpContextAccessor = httpContextAccessor; }