/// <inheritdoc /> public ServerTranslatorFrom(IGdprCapability capablity, System.Func <string> getServerNameMethod) { PersonService = new PersonServerTranslatorFrom(capablity, getServerNameMethod); ConsentService = new ConsentServerTranslatorFrom(capablity, getServerNameMethod); PersonConsentService = new PersonConsentServerTranslatorFrom(capablity, getServerNameMethod); ConsentPersonService = new ConsentPersonServerTranslatorFrom(capablity, getServerNameMethod); }
/// <inheritdoc /> public ServerTranslatorTo(IGdprCapability capablity, System.Func <string> getServerNameMethod, ITranslatorService translatorService) { PersonService = new PersonServerTranslatorTo(capablity, getServerNameMethod, translatorService); ConsentService = new ConsentServerTranslatorTo(capablity, getServerNameMethod, translatorService); PersonConsentService = new PersonConsentServerTranslatorTo(capablity, getServerNameMethod, translatorService); ConsentPersonService = new ConsentPersonServerTranslatorTo(capablity, getServerNameMethod, translatorService); }
/// <inheritdoc /> public ClientTranslator(IGdprCapability capablity, System.Func <string> getclientNameMethod, ITranslatorService translatorService) { PersonService = new PersonClientTranslator(capablity, getclientNameMethod, translatorService); ConsentService = new ConsentClientTranslator(capablity, getclientNameMethod, translatorService); PersonConsentService = new PersonConsentClientTranslator(capablity, getclientNameMethod, translatorService); ConsentPersonService = new ConsentPersonClientTranslator(capablity, getclientNameMethod, translatorService); }
/// <inheritdoc /> public Cache(IGdprCapability capablity) { _capablity = capablity; // TODO: Change the async calls into AsyncLazy var metaCache = new CrudMemory <DistributedCacheMemory, string>(); var cacheFactory = new DistributedCacheFactoryMemory(metaCache); var personCache = cacheFactory.GetOrCreateDistributedCacheAsync("Person").Result; _personService = new PersonCache(capablity, personCache); var consentCache = cacheFactory.GetOrCreateDistributedCacheAsync("Consent").Result; // ReSharper disable once SuspiciousTypeConversion.Global ConsentService = new ConsentCache(capablity, consentCache); var personConsentCache = cacheFactory.GetOrCreateDistributedCacheAsync("PersonConsent").Result; // ReSharper disable once SuspiciousTypeConversion.Global PersonConsentService = new PersonConsentCache(capablity, personConsentCache); var consentPersonCache = cacheFactory.GetOrCreateDistributedCacheAsync("ConsentPerson").Result; // ReSharper disable once SuspiciousTypeConversion.Global ConsentPersonService = new ConsentPersonCache(capablity, consentPersonCache); }
/// <inheritdoc /> protected ConsentPersonServiceController(IGdprCapability gdprCapability) : base(gdprCapability.ConsentPersonService) { }
/// <summary> /// Constructor /// </summary> public ConsentServerTranslatorFrom(IGdprCapability gdprCapability, System.Func <string> getServerNameMethod) : base(gdprCapability.ConsentService, "consent.id", getServerNameMethod) { }
/// <summary> /// Constructor /// </summary> public PersonConsentsController(IGdprCapability logic) : base(logic) { }
/// <summary> /// Constructor /// </summary> public PersonConsentClientTranslator(IGdprCapability gdprCapability, System.Func <string> getclientNameMethod, ITranslatorService translatorService) : base(gdprCapability.PersonConsentService, "person.id", "consent.id", getclientNameMethod, translatorService) { }
/// <inheritdoc /> public ConsentsController(IGdprCapability gdprCapability) : base(gdprCapability) { }
/// <summary> /// Constructor /// </summary> public ConsentCache(IGdprCapability gdprCapability, IDistributedCache cache) : base(gdprCapability.ConsentService, cache) { }
/// <summary> /// Constructor /// </summary> public PersonServerTranslatorFrom(IGdprCapability gdprCapability, System.Func <string> getServerNameMethod) : base(gdprCapability.PersonService, "person.id", getServerNameMethod) { _gdprCapability = gdprCapability; }
/// <inheritdoc /> protected PersonConsentServiceController(IGdprCapability gdprCapability) : base(gdprCapability.PersonConsentService) { }
/// <inheritdoc /> public PersonsController(IGdprCapability gdprCapability) : base(gdprCapability) { }
/// <summary> /// Constructor /// </summary> public ConsentServerTranslatorTo(IGdprCapability gdprCapability, System.Func <string> getServerNameMethod, ITranslatorService translatorService) : base(gdprCapability.ConsentService, "consent.id", getServerNameMethod, translatorService) { }
/// <summary> /// Constructor /// </summary> public PersonsController(IGdprCapability logic) : base(logic) { _logic = logic; }
/// <summary> /// Constructor /// </summary> protected PersonServiceController(IGdprCapability gdprCapability) : base(gdprCapability.PersonService) { _gdprCapability = gdprCapability; }
/// <summary> /// Constructor /// </summary> public PersonCache(IGdprCapability gdprCapability, IDistributedCache cache) : base(gdprCapability.PersonService, cache) { _gdprCapability = gdprCapability; }