Пример #1
0
        public IMediator CreateMediator()
        {
            if (_mediatorCreated)
            {
                throw new InvalidOperationException("CreateMediator() was previously called and can only be called once.");
            }

            Resolver = _serviceRegistration.CreateResolver();

            _mediatorCreated = true;

            return(new Mediator(this));
        }