Exemple #1
0
        public MembershipManager(
            StatelessServiceContext context,
            ILogger logger)
            : base(context)
        {
            _Logger = logger ?? throw new ArgumentNullException(nameof(logger));
            var registrationEngine = TrackingProxy.ForComponent <IRegistrationEngine>(this);

            _Impl = LogProxy.Create <IMembershipManager>(new Impl.MembershipManager(registrationEngine, logger), logger, LogType.All);
            _Logger.Information("Constructed");
        }
        public RegistrationEngine(
            StatelessServiceContext context,
            ILogger logger)
            : base(context)
        {
            _Logger = logger ?? throw new ArgumentNullException(nameof(logger));
            var userAccess = TrackingProxy.ForComponent <IUserAccess>(this);

            _Impl = LogProxy.Create <IRegistrationEngine>(new Impl.RegistrationEngine(userAccess, logger), logger, LogType.All);
            _Logger.Information("Constructed");
        }