﻿<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/css' href='https://stocksharp.ru/css/style.css'?>
<?xml-stylesheet type='text/css' href='https://stocksharp.ru/css/bbeditor.css'?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="html">dependencyinjection. StockSharp</title>
  <id>https://stocksharp.ru/handlers/atom.ashx?category=tag&amp;id=dependencyinjection&amp;type=community</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-04-15T01:32:59Z</updated>
  <logo>https://stocksharp.ru/images/logo.png</logo>
  <link href="https://stocksharp.ru/handlers/atom.ashx?category=tag&amp;id=dependencyinjection&amp;type=community" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.ru/topic/10799/</id>
    <title type="text">DI в S# API</title>
    <published>2019-06-16T02:48:55Z</published>
    <updated>2019-06-20T16:20:24Z</updated>
    <author>
      <name>Дмитрий_</name>
      <uri>https://stocksharp.ru/users/62269/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <category term="DependencyInjection" />
    <content type="html">Добрый день&lt;br /&gt;&lt;br /&gt;В &lt;a href="https://doc.stocksharp.ru/html/b5725b73-8ba6-46d6-b456-cba5f6678f91.htm " title="https://doc.stocksharp.ru/html/b5725b73-8ba6-46d6-b456-cba5f6678f91.htm "&gt;https://doc.stocksharp.r...6-b456-cba5f6678f91.htm &lt;/a&gt;ничего не нашел.&lt;br /&gt;&lt;br /&gt;Опишите пожалуйста, что происходит за кулисами (аналог кода) при регистрации следующих сервисов:&lt;br /&gt;1) ConfigManager.RegisterService&amp;lt;IEntityRegistry&amp;gt;(EntityRegistry);&lt;br /&gt;2) ConfigManager.RegisterService(EntityRegistry.Storage);&lt;br /&gt;3) ConfigManager.RegisterService&amp;lt;ISecurityStorage&amp;gt;(EntityRegistry.Securities);&lt;br /&gt;4) ConfigManager.RegisterService(EntityRegistry.Portfolios);&lt;br /&gt;5) СonfigManager.RegisterService&amp;lt;IConnector&amp;gt;(Connector);&lt;br /&gt;6) ConfigManager.RegisterService&amp;lt;ISecurityProvider&amp;gt;(Connector);&lt;br /&gt;7) ConfigManager.RegisterService&amp;lt;IPortfolioProvider&amp;gt;(Connector);&lt;br /&gt;8) ConfigManager.RegisterService(new PortfolioDataSource(Connector));&lt;br /&gt;9) ConfigManager.RegisterService&amp;lt;IStudioCommandService&amp;gt;(new StudioCommandService());&lt;br /&gt;10) ConfigManager.RegisterService&amp;lt;IExchangeInfoProvider&amp;gt;(new StorageExchangeInfoProvider(EntityRegistry));</content>
  </entry>
</feed>