public MessageBus(ILogger <MessageBus> logger,
                   IRuntimeContextAccessor runtimeContextAccessor,
                   IPublishEndpoint publishEndpoint)
 {
     _log             = logger ?? throw new ArgumentNullException(nameof(logger));
     _runtimeCtx      = runtimeContextAccessor ?? throw new ArgumentNullException(nameof(runtimeContextAccessor));
     _publishEndpoint = publishEndpoint ?? throw new ArgumentNullException(nameof(publishEndpoint));
 }
 public PatchCarAh(ILogger <PatchCarAh> logger,
                   IActionContextAccessor actionCtx,
                   IMediator mediator,
                   IMapper <Car, CarVm> carToCarVmMapper,
                   IRuntimeContextAccessor runtimeContext)
 {
     _log              = logger ?? throw new ArgumentNullException(nameof(logger));
     _actionCtx        = actionCtx ?? throw new ArgumentNullException(nameof(actionCtx));
     _mediator         = mediator ?? throw new ArgumentNullException(nameof(mediator));
     _carToCarVmMapper = carToCarVmMapper ?? throw new ArgumentNullException(nameof(carToCarVmMapper));
     _runtimeCtx       = runtimeContext ?? throw new ArgumentNullException(nameof(runtimeContext));
 }
예제 #3
0
 public unsafe IAutoMemoryManager CreateManager(IMemoryManager underlying, IRuntimeContextAccessor runtimeContextAccessor)
 {
     return(_memManInstance ?? (_memManInstance = new AutoMemoryManager(this, underlying)));
 }
 public IAutoMemoryManager CreateManager(IMemoryManager underlying, IRuntimeContextAccessor runtimeAccessor)
 {
     return(new AutoMemoryManagerImpl(underlying));
 }
        IAutoMemoryManager IAutoMemoryManagementContext.CreateManager(IMemoryManager underlying, IRuntimeContextAccessor runtimeAccessor)
        {
            var underlyingManager = _underlyingContext.CreateManager(underlying, runtimeAccessor);

            return(underlyingManager);
        }