当前位置: 首页>>代码示例>>C#>>正文


C# IItemRepository类代码示例

本文整理汇总了C#中IItemRepository的典型用法代码示例。如果您正苦于以下问题:C# IItemRepository类的具体用法?C# IItemRepository怎么用?C# IItemRepository使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IItemRepository类属于命名空间,在下文中一共展示了IItemRepository类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ItemController

 public ItemController(IItemRepository itemRepository, IMapper mapper)
 {
     if (itemRepository == null) throw new ArgumentNullException(nameof(itemRepository));
     if (mapper == null) throw new ArgumentNullException(nameof(mapper));
    _itemRepository = itemRepository;
    _mapper = mapper;
 }
开发者ID:Marsh87,项目名称:LendingLibrary,代码行数:7,代码来源:ItemController.cs

示例2: InternalEncodingTaskFactory

 public InternalEncodingTaskFactory(ILibraryManager libraryManager, ILiveTvManager liveTvManager, IItemRepository itemRepo, IServerConfigurationManager config)
 {
     _libraryManager = libraryManager;
     _liveTvManager = liveTvManager;
     _itemRepo = itemRepo;
     _config = config;
 }
开发者ID:Rycius,项目名称:MediaBrowser,代码行数:7,代码来源:InternalEncodingTaskFactory.cs

示例3: DtoBuilder

 public DtoBuilder(ILogger logger, ILibraryManager libraryManager, IUserDataRepository userDataRepository, IItemRepository itemRepo)
 {
     _logger = logger;
     _libraryManager = libraryManager;
     _userDataRepository = userDataRepository;
     _itemRepo = itemRepo;
 }
开发者ID:jordy1955,项目名称:MediaBrowser,代码行数:7,代码来源:DtoBuilder.cs

示例4: MainWindow

        /// <summary>
        /// Initializes a new instance of the <see cref="MainWindow" /> class.
        /// </summary>
        /// <param name="logManager">The log manager.</param>
        /// <param name="appHost">The app host.</param>
        /// <param name="configurationManager">The configuration manager.</param>
        /// <param name="userManager">The user manager.</param>
        /// <param name="libraryManager">The library manager.</param>
        /// <param name="jsonSerializer">The json serializer.</param>
        /// <param name="displayPreferencesManager">The display preferences manager.</param>
        /// <exception cref="System.ArgumentNullException">logger</exception>
        public MainWindow(ILogManager logManager, IServerApplicationHost appHost, IServerConfigurationManager configurationManager, IUserManager userManager, ILibraryManager libraryManager, IJsonSerializer jsonSerializer, IDisplayPreferencesRepository displayPreferencesManager, IItemRepository itemRepo)
        {
            if (logManager == null)
            {
                throw new ArgumentNullException("logManager");
            }
            if (appHost == null)
            {
                throw new ArgumentNullException("appHost");
            }
            if (configurationManager == null)
            {
                throw new ArgumentNullException("configurationManager");
            }

            _logger = logManager.GetLogger("MainWindow");
            _itemRepository = itemRepo;
            _appHost = appHost;
            _logManager = logManager;
            _configurationManager = configurationManager;
            _userManager = userManager;
            _libraryManager = libraryManager;
            _jsonSerializer = jsonSerializer;
            _displayPreferencesManager = displayPreferencesManager;

            InitializeComponent();

            Loaded += MainWindowLoaded;
        }
开发者ID:jscorrea,项目名称:MediaBrowser,代码行数:40,代码来源:MainWindow.xaml.cs

示例5: MoviesService

 /// <summary>
 /// Initializes a new instance of the <see cref="MoviesService"/> class.
 /// </summary>
 /// <param name="userManager">The user manager.</param>
 /// <param name="userDataRepository">The user data repository.</param>
 /// <param name="libraryManager">The library manager.</param>
 public MoviesService(IUserManager userManager, IUserDataRepository userDataRepository, ILibraryManager libraryManager, IItemRepository itemRepo)
 {
     _userManager = userManager;
     _userDataRepository = userDataRepository;
     _libraryManager = libraryManager;
     _itemRepo = itemRepo;
 }
开发者ID:JasoonJ,项目名称:MediaBrowser,代码行数:13,代码来源:MoviesService.cs

示例6: BorrowerItemController

 public BorrowerItemController(IBorrowerItemRepository borrowerItemRepository, IMappingEngine mappingEngine, IBorrowerRepository borrowerRepository, IItemRepository itemRepository)
 {
     _borrowerItemRepository = borrowerItemRepository;
     _mappingEngine = mappingEngine;
     _borrowerRepository = borrowerRepository;
     _itemRepository = itemRepository;
 }
开发者ID:RyhilaEbrahim,项目名称:LendingLibrary,代码行数:7,代码来源:BorrowerItemController.cs

示例7: FurnaceWindow

        public FurnaceWindow(IEventScheduler scheduler, Coordinates3D coordinates,
            IItemRepository itemRepository, InventoryWindow inventory)
        {
            ItemRepository = itemRepository;
            EventScheduler = scheduler;
            Coordinates = coordinates;

            WindowAreas = new[]
                {
                    new WindowArea(IngredientIndex, 1, 1, 1),
                    new WindowArea(FuelIndex, 1, 1, 1),
                    new WindowArea(OutputIndex, 1, 1, 1),
                    new WindowArea(MainIndex, 27, 9, 3),
                    new WindowArea(HotbarIndex, 9, 9, 1)
                };
            inventory.MainInventory.CopyTo(MainInventory);
            inventory.Hotbar.CopyTo(Hotbar);
            foreach (var area in WindowAreas)
                area.WindowChange += (s, e) => OnWindowChange(new WindowChangeEventArgs(
                    (s as WindowArea).StartIndex + e.SlotIndex, e.Value));
            Copying = false;
            inventory.WindowChange += (sender, e) =>
            {
                if (Copying) return;
                if ((e.SlotIndex >= InventoryWindow.MainIndex && e.SlotIndex < InventoryWindow.MainIndex + inventory.MainInventory.Length)
                    || (e.SlotIndex >= InventoryWindow.HotbarIndex && e.SlotIndex < InventoryWindow.HotbarIndex + inventory.Hotbar.Length))
                {
                    inventory.MainInventory.CopyTo(MainInventory);
                    inventory.Hotbar.CopyTo(Hotbar);
                }
            };
        }
开发者ID:Zoxive,项目名称:TrueCraft,代码行数:32,代码来源:FurnaceWindow.cs

示例8: CleanDatabaseScheduledTask

 public CleanDatabaseScheduledTask(ILibraryManager libraryManager, IItemRepository itemRepo, ILogger logger, IServerConfigurationManager config)
 {
     _libraryManager = libraryManager;
     _itemRepo = itemRepo;
     _logger = logger;
     _config = config;
 }
开发者ID:raven-au,项目名称:Emby,代码行数:7,代码来源:CleanDatabaseScheduledTask.cs

示例9: ChapterManager

 public ChapterManager(ILibraryManager libraryManager, ILogger logger, IServerConfigurationManager config, IItemRepository itemRepo)
 {
     _libraryManager = libraryManager;
     _logger = logger;
     _config = config;
     _itemRepo = itemRepo;
 }
开发者ID:rezafouladian,项目名称:Emby,代码行数:7,代码来源:ChapterManager.cs

示例10: PnRegAppService

 public PnRegAppService(IPnRegQuery pnRegQuery, IPnRegRepository pnRegRepository,
     IItemRepository itemRepository)
 {
     _pnRegQuery = pnRegQuery;
     _pnRegRepository = pnRegRepository;
     _itemRepository = itemRepository;
 }
开发者ID:unicloud,项目名称:FRP,代码行数:7,代码来源:PnRegAppService.cs

示例11: AdminController

 public AdminController(IItemRepository itemRepository, IBasketRepository basketRepository)
 {
     if (itemRepository == null) throw new ArgumentNullException(nameof(itemRepository));
     if (basketRepository == null) throw new ArgumentNullException(nameof(basketRepository));
     _itemRepository = itemRepository;
     _basketRepository = basketRepository;
 }
开发者ID:philpursglove,项目名称:Phoneshop2,代码行数:7,代码来源:AdminController.cs

示例12: EpisodeXmlProvider

 public EpisodeXmlProvider(IItemRepository itemRepository, IServerConfigurationManager config, ILibraryManager libraryManager, IFileSystem fileSystem)
 {
     _itemRepository = itemRepository;
     _config = config;
     _libraryManager = libraryManager;
     _fileSystem = fileSystem;
 }
开发者ID:angelblue05,项目名称:Emby.Plugins,代码行数:7,代码来源:EpisodeXmlSaver.cs

示例13: EpisodeProviderFromXml

 public EpisodeProviderFromXml(ILogManager logManager, IServerConfigurationManager configurationManager, IItemRepository itemRepo, IFileSystem fileSystem)
     : base(logManager, configurationManager)
 {
     _itemRepo = itemRepo;
     _fileSystem = fileSystem;
     Current = this;
 }
开发者ID:Jon-theHTPC,项目名称:MediaBrowser,代码行数:7,代码来源:EpisodeProviderFromXml.cs

示例14: LiveTvDtoService

 public LiveTvDtoService(IDtoService dtoService, IUserDataManager userDataManager, IImageProcessor imageProcessor, ILogger logger, IItemRepository itemRepo)
 {
     _dtoService = dtoService;
     _userDataManager = userDataManager;
     _imageProcessor = imageProcessor;
     _logger = logger;
     _itemRepo = itemRepo;
 }
开发者ID:Rycius,项目名称:MediaBrowser,代码行数:8,代码来源:LiveTvDtoService.cs

示例15: SubtitleManager

 public SubtitleManager(ILogger logger, IFileSystem fileSystem, ILibraryMonitor monitor, ILibraryManager libraryManager, IItemRepository itemRepo)
 {
     _logger = logger;
     _fileSystem = fileSystem;
     _monitor = monitor;
     _libraryManager = libraryManager;
     _itemRepo = itemRepo;
 }
开发者ID:jmarsh0507,项目名称:MediaBrowser,代码行数:8,代码来源:SubtitleManager.cs


注:本文中的IItemRepository类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。