You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

307 lines
15 KiB

3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
  1. <!DOCTYPE html>
  2. <!--[if IE]><![endif]-->
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <title>Interface IConfigStore
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Interface IConfigStore
  11. ">
  12. <meta name="generator" content="docfx 2.59.4.0">
  13. <link rel="shortcut icon" href="../favicon.ico">
  14. <link rel="stylesheet" href="../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../styles/docfx.css">
  16. <link rel="stylesheet" href="../styles/main.css">
  17. <link rel="stylesheet" href="../styles/fix.css">
  18. <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
  19. <meta property="docfx:navrel" content="../toc.html">
  20. <meta property="docfx:tocrel" content="toc.html">
  21. <meta property="docfx:rel" content="../">
  22. <meta property="docfx:newtab" content="true">
  23. </head> <body data-spy="scroll" data-target="#affix" data-offset="120">
  24. <div id="wrapper">
  25. <header>
  26. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  27. <div class="container">
  28. <div class="navbar-header">
  29. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  30. <span class="sr-only">Toggle navigation</span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. <span class="icon-bar"></span>
  34. </button>
  35. <a class="navbar-brand" href="../index.html">
  36. <img id="logo" class="svg" src="../logo.svg" alt="">
  37. </a>
  38. </div>
  39. <div class="collapse navbar-collapse" id="navbar">
  40. <form class="navbar-form navbar-right" role="search" id="search">
  41. <div class="form-group">
  42. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  43. </div>
  44. </form>
  45. </div>
  46. </div>
  47. </nav>
  48. <div class="subnav navbar navbar-default">
  49. <div class="container hide-when-search" id="breadcrumb">
  50. <ul class="breadcrumb">
  51. <li></li>
  52. </ul>
  53. </div>
  54. </div>
  55. </header>
  56. <div class="container body-content">
  57. <div id="search-results">
  58. <div class="search-list">Search Results for <span></span></div>
  59. <div class="sr-items">
  60. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  61. </div>
  62. <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
  63. </div>
  64. </div>
  65. <div role="main" class="container body-content hide-when-search">
  66. <div class="sidenav hide-when-search">
  67. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  68. <div class="sidetoggle collapse" id="sidetoggle">
  69. <div id="sidetoc"></div>
  70. </div>
  71. </div>
  72. <div class="article row grid-right">
  73. <div class="col-md-10">
  74. <article class="content wrap" id="_content" data-uid="IPA.Config.IConfigStore">
  75. <h1 id="IPA_Config_IConfigStore" data-uid="IPA.Config.IConfigStore" class="text-break">Interface IConfigStore
  76. </h1>
  77. <div class="markdown level0 summary"><p>A storage for a config structure.</p>
  78. </div>
  79. <div class="markdown level0 conceptual"></div>
  80. <h6><strong>Namespace</strong>: <a class="xref" href="IPA.Config.html">IPA.Config</a></h6>
  81. <h6><strong>Assembly</strong>: IPA.Loader.dll</h6>
  82. <h5 id="IPA_Config_IConfigStore_syntax">Syntax</h5>
  83. <div class="codewrapper">
  84. <pre><code class="lang-csharp hljs">public interface IConfigStore</code></pre>
  85. </div>
  86. <h3 id="properties">Properties
  87. </h3>
  88. <span class="small pull-right mobile-hide">
  89. <span class="divider">|</span>
  90. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_IConfigStore_SyncObject.md&amp;value=---%0Auid%3A%20IPA.Config.IConfigStore.SyncObject%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  91. </span>
  92. <span class="small pull-right mobile-hide">
  93. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/35990a78282d14ea4464e68ee973182877edc9fa/IPA.Loader/Config/IConfigStore.cs/#L16">View Source</a>
  94. </span>
  95. <a id="IPA_Config_IConfigStore_SyncObject_" data-uid="IPA.Config.IConfigStore.SyncObject*"></a>
  96. <h4 id="IPA_Config_IConfigStore_SyncObject" data-uid="IPA.Config.IConfigStore.SyncObject">SyncObject</h4>
  97. <div class="markdown level1 summary"><p>A synchronization object for the save thread to wait on for changes.
  98. It should be signaled whenever the internal state of the object is changed.
  99. The writer will never signal this handle.
  100. This will be null for internally-implemented providers</p>
  101. </div>
  102. <div class="markdown level1 conceptual"></div>
  103. <h5 class="decalaration">Declaration</h5>
  104. <div class="codewrapper">
  105. <pre><code class="lang-csharp hljs">WaitHandle SyncObject { get; }</code></pre>
  106. </div>
  107. <h5 class="propertyValue">Property Value</h5>
  108. <table class="table table-bordered table-striped table-condensed">
  109. <thead>
  110. <tr>
  111. <th>Type</th>
  112. <th>Description</th>
  113. </tr>
  114. </thead>
  115. <tbody>
  116. <tr>
  117. <td><span class="xref">System.Threading.WaitHandle</span></td>
  118. <td></td>
  119. </tr>
  120. </tbody>
  121. </table>
  122. <span class="small pull-right mobile-hide">
  123. <span class="divider">|</span>
  124. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_IConfigStore_WriteSyncObject.md&amp;value=---%0Auid%3A%20IPA.Config.IConfigStore.WriteSyncObject%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  125. </span>
  126. <span class="small pull-right mobile-hide">
  127. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/35990a78282d14ea4464e68ee973182877edc9fa/IPA.Loader/Config/IConfigStore.cs/#L27">View Source</a>
  128. </span>
  129. <a id="IPA_Config_IConfigStore_WriteSyncObject_" data-uid="IPA.Config.IConfigStore.WriteSyncObject*"></a>
  130. <h4 id="IPA_Config_IConfigStore_WriteSyncObject" data-uid="IPA.Config.IConfigStore.WriteSyncObject">WriteSyncObject</h4>
  131. <div class="markdown level1 summary"><p>A synchronization object for the load thread and accessors to maintain safe synchronization.
  132. Any readers should take a read lock with <span class="xref">System.Threading.ReaderWriterLockSlim.EnterReadLock</span> or
  133. <span class="xref">System.Threading.ReaderWriterLockSlim.EnterUpgradeableReadLock</span>, and any writers should take a
  134. write lock with <span class="xref">System.Threading.ReaderWriterLockSlim.EnterWriteLock</span>.</p>
  135. </div>
  136. <div class="markdown level1 conceptual"></div>
  137. <h5 class="decalaration">Declaration</h5>
  138. <div class="codewrapper">
  139. <pre><code class="lang-csharp hljs">ReaderWriterLockSlim WriteSyncObject { get; }</code></pre>
  140. </div>
  141. <h5 class="propertyValue">Property Value</h5>
  142. <table class="table table-bordered table-striped table-condensed">
  143. <thead>
  144. <tr>
  145. <th>Type</th>
  146. <th>Description</th>
  147. </tr>
  148. </thead>
  149. <tbody>
  150. <tr>
  151. <td><span class="xref">System.Threading.ReaderWriterLockSlim</span></td>
  152. <td></td>
  153. </tr>
  154. </tbody>
  155. </table>
  156. <h5 id="IPA_Config_IConfigStore_WriteSyncObject_remarks">Remarks</h5>
  157. <div class="markdown level1 remarks"><p>Read and write are read and write to <em>this object</em>, not to the file on disk.</p>
  158. </div>
  159. <h3 id="methods">Methods
  160. </h3>
  161. <span class="small pull-right mobile-hide">
  162. <span class="divider">|</span>
  163. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_IConfigStore_ReadFrom_IPA_Config_ConfigProvider_.md&amp;value=---%0Auid%3A%20IPA.Config.IConfigStore.ReadFrom(IPA.Config.ConfigProvider)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  164. </span>
  165. <span class="small pull-right mobile-hide">
  166. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/35990a78282d14ea4464e68ee973182877edc9fa/IPA.Loader/Config/IConfigStore.cs/#L49">View Source</a>
  167. </span>
  168. <a id="IPA_Config_IConfigStore_ReadFrom_" data-uid="IPA.Config.IConfigStore.ReadFrom*"></a>
  169. <h4 id="IPA_Config_IConfigStore_ReadFrom_IPA_Config_ConfigProvider_" data-uid="IPA.Config.IConfigStore.ReadFrom(IPA.Config.ConfigProvider)">ReadFrom(ConfigProvider)</h4>
  170. <div class="markdown level1 summary"><p>Reads the config structure from the given <a class="xref" href="IPA.Config.IConfigProvider.html">IConfigProvider</a> into the current
  171. <a class="xref" href="IPA.Config.IConfigStore.html">IConfigStore</a>.</p>
  172. </div>
  173. <div class="markdown level1 conceptual"></div>
  174. <h5 class="decalaration">Declaration</h5>
  175. <div class="codewrapper">
  176. <pre><code class="lang-csharp hljs">void ReadFrom(ConfigProvider provider)</code></pre>
  177. </div>
  178. <h5 class="parameters">Parameters</h5>
  179. <table class="table table-bordered table-striped table-condensed">
  180. <thead>
  181. <tr>
  182. <th>Type</th>
  183. <th>Name</th>
  184. <th>Description</th>
  185. </tr>
  186. </thead>
  187. <tbody>
  188. <tr>
  189. <td><a class="xref" href="IPA.Config.ConfigProvider.html">ConfigProvider</a></td>
  190. <td><span class="parametername">provider</span></td>
  191. <td><p>the provider to read from</p>
  192. </td>
  193. </tr>
  194. </tbody>
  195. </table>
  196. <h5 id="IPA_Config_IConfigStore_ReadFrom_IPA_Config_ConfigProvider__remarks">Remarks</h5>
  197. <div class="markdown level1 remarks"><p>The calling code will have entered a write lock on <a class="xref" href="IPA.Config.IConfigStore.html#IPA_Config_IConfigStore_WriteSyncObject">WriteSyncObject</a> when
  198. this is called.</p>
  199. </div>
  200. <span class="small pull-right mobile-hide">
  201. <span class="divider">|</span>
  202. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_IConfigStore_WriteTo_IPA_Config_ConfigProvider_.md&amp;value=---%0Auid%3A%20IPA.Config.IConfigStore.WriteTo(IPA.Config.ConfigProvider)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  203. </span>
  204. <span class="small pull-right mobile-hide">
  205. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/35990a78282d14ea4464e68ee973182877edc9fa/IPA.Loader/Config/IConfigStore.cs/#L38">View Source</a>
  206. </span>
  207. <a id="IPA_Config_IConfigStore_WriteTo_" data-uid="IPA.Config.IConfigStore.WriteTo*"></a>
  208. <h4 id="IPA_Config_IConfigStore_WriteTo_IPA_Config_ConfigProvider_" data-uid="IPA.Config.IConfigStore.WriteTo(IPA.Config.ConfigProvider)">WriteTo(ConfigProvider)</h4>
  209. <div class="markdown level1 summary"><p>Writes the config structure stored by the current <a class="xref" href="IPA.Config.IConfigStore.html">IConfigStore</a> to the given
  210. <a class="xref" href="IPA.Config.IConfigProvider.html">IConfigProvider</a>.</p>
  211. </div>
  212. <div class="markdown level1 conceptual"></div>
  213. <h5 class="decalaration">Declaration</h5>
  214. <div class="codewrapper">
  215. <pre><code class="lang-csharp hljs">void WriteTo(ConfigProvider provider)</code></pre>
  216. </div>
  217. <h5 class="parameters">Parameters</h5>
  218. <table class="table table-bordered table-striped table-condensed">
  219. <thead>
  220. <tr>
  221. <th>Type</th>
  222. <th>Name</th>
  223. <th>Description</th>
  224. </tr>
  225. </thead>
  226. <tbody>
  227. <tr>
  228. <td><a class="xref" href="IPA.Config.ConfigProvider.html">ConfigProvider</a></td>
  229. <td><span class="parametername">provider</span></td>
  230. <td><p>the provider to write to</p>
  231. </td>
  232. </tr>
  233. </tbody>
  234. </table>
  235. <h5 id="IPA_Config_IConfigStore_WriteTo_IPA_Config_ConfigProvider__remarks">Remarks</h5>
  236. <div class="markdown level1 remarks"><p>The calling code will have entered a read lock on <a class="xref" href="IPA.Config.IConfigStore.html#IPA_Config_IConfigStore_WriteSyncObject">WriteSyncObject</a> when
  237. this is called.</p>
  238. </div>
  239. <h3 id="extensionmethods">Extension Methods</h3>
  240. <div>
  241. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetField__2___0_System_String___1_">ReflectionUtil.SetField&lt;T, U&gt;(T, String, U)</a>
  242. </div>
  243. <div>
  244. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_GetField__2___1_System_String_">ReflectionUtil.GetField&lt;U, T&gt;(T, String)</a>
  245. </div>
  246. <div>
  247. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetProperty__2___0_System_String___1_">ReflectionUtil.SetProperty&lt;T, U&gt;(T, String, U)</a>
  248. </div>
  249. <div>
  250. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_GetProperty__2___1_System_String_">ReflectionUtil.GetProperty&lt;U, T&gt;(T, String)</a>
  251. </div>
  252. <div>
  253. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokeMethod__2___1_System_String_System_Object___">ReflectionUtil.InvokeMethod&lt;U, T&gt;(T, String, Object[])</a>
  254. </div>
  255. </article>
  256. </div>
  257. <div class="hidden-sm col-md-2" role="complementary">
  258. <div class="sideaffix">
  259. <div class="contribution">
  260. <ul class="nav">
  261. <li>
  262. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Config_IConfigStore.md&amp;value=---%0Auid%3A%20IPA.Config.IConfigStore%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
  263. </li>
  264. <li>
  265. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/35990a78282d14ea4464e68ee973182877edc9fa/IPA.Loader/Config/IConfigStore.cs/#L8" class="contribution-link">View Source</a>
  266. </li>
  267. </ul>
  268. </div>
  269. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  270. <h5>In This Article</h5>
  271. <div></div>
  272. </nav>
  273. </div>
  274. </div>
  275. </div>
  276. </div>
  277. <footer>
  278. <div class="grad-bottom"></div>
  279. <div class="footer">
  280. <div class="container">
  281. <span class="pull-right">
  282. <a href="#top">Back to top</a>
  283. </span>
  284. <span>Generated by <strong>DocFX</strong></span>
  285. </div>
  286. </div>
  287. </footer>
  288. </div>
  289. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  290. <script type="text/javascript" src="../styles/docfx.js"></script>
  291. <script type="text/javascript" src="../styles/main.js"></script>
  292. </body>
  293. </html>