Show / Hide Table of Contents

Class PersistableServiceHelper

Inheritance
Object
PersistableServiceHelper
Namespace: StockSharp.Studio.Core.Services
Assembly: StockSharp.Studio.Core.dll
Syntax
public static class PersistableServiceHelper : Object

Methods

GetAlertService(IPersistableService)

Declaration
public static SettingsStorage GetAlertService(this IPersistableService service)
Parameters
Type Name Description
IPersistableService service
Returns
Type Description
Ecng.Serialization.SettingsStorage

GetAutoConnect(IPersistableService)

Declaration
public static bool GetAutoConnect(this IPersistableService service)
Parameters
Type Name Description
IPersistableService service
Returns
Type Description
Boolean

GetCommonSettings<T>(IPersistableService)

Declaration
public static T GetCommonSettings<T>(this IPersistableService service)
    where T : StudioCommonSettings, new()
Parameters
Type Name Description
IPersistableService service
Returns
Type Description
T
Type Parameters
Name Description
T

GetConnector(IPersistableService)

Declaration
public static SettingsStorage GetConnector(this IPersistableService service)
Parameters
Type Name Description
IPersistableService service
Returns
Type Description
Ecng.Serialization.SettingsStorage

GetConnectorWindow(IPersistableService)

Declaration
public static SettingsStorage GetConnectorWindow(this IPersistableService service)
Parameters
Type Name Description
IPersistableService service
Returns
Type Description
Ecng.Serialization.SettingsStorage

GetDaysLoad(IPersistableService)

Declaration
public static TimeSpan GetDaysLoad(this IPersistableService service)
Parameters
Type Name Description
IPersistableService service
Returns
Type Description
TimeSpan

GetDoNotShowQuestionWindow(IPersistableService)

Declaration
public static bool GetDoNotShowQuestionWindow(this IPersistableService service)
Parameters
Type Name Description
IPersistableService service
Returns
Type Description
Boolean

GetIsFirstRun(IPersistableService)

Declaration
public static bool GetIsFirstRun(this IPersistableService service)
Parameters
Type Name Description
IPersistableService service
Returns
Type Description
Boolean

GetLayout(IPersistableService)

Declaration
public static SettingsStorage GetLayout(this IPersistableService service)
Parameters
Type Name Description
IPersistableService service
Returns
Type Description
Ecng.Serialization.SettingsStorage

GetNextTimeFeedback(IPersistableService)

Declaration
public static Nullable<DateTime> GetNextTimeFeedback(this IPersistableService service)
Parameters
Type Name Description
IPersistableService service
Returns
Type Description
Nullable<DateTime>

GetReferences(IPersistableService)

Declaration
public static IEnumerable<CodeReference> GetReferences(this IPersistableService service)
Parameters
Type Name Description
IPersistableService service
Returns
Type Description
IEnumerable<CodeReference>

GetRibbon(IPersistableService)

Declaration
public static string GetRibbon(this IPersistableService service)
Parameters
Type Name Description
IPersistableService service
Returns
Type Description
String

GetSettings<T>(IPersistableService, String)

Declaration
public static T GetSettings<T>(this IPersistableService service, string key)
    where T : class, IPersistable, new()
Parameters
Type Name Description
IPersistableService service
String key
Returns
Type Description
T
Type Parameters
Name Description
T

GetStorageFormat(IPersistableService)

Declaration
public static StorageFormats GetStorageFormat(this IPersistableService service)
Parameters
Type Name Description
IPersistableService service
Returns
Type Description
StorageFormats

GetStudioSession(IPersistableService)

Declaration
public static SettingsStorage GetStudioSession(this IPersistableService service)
Parameters
Type Name Description
IPersistableService service
Returns
Type Description
Ecng.Serialization.SettingsStorage

GetTheme(IPersistableService)

Declaration
public static string GetTheme(this IPersistableService service)
Parameters
Type Name Description
IPersistableService service
Returns
Type Description
String

LoadEmulatorSettings(IPersistableService)

Declaration
public static MarketEmulatorSettings LoadEmulatorSettings(this IPersistableService service)
Parameters
Type Name Description
IPersistableService service
Returns
Type Description
MarketEmulatorSettings

LoadMainWindowSettings(IPersistableService, Window)

Declaration
public static void LoadMainWindowSettings(this IPersistableService service, Window window)
Parameters
Type Name Description
IPersistableService service
Window window

SaveEmulatorSettings(IPersistableService, MarketEmulatorSettings)

Declaration
public static void SaveEmulatorSettings(this IPersistableService service, MarketEmulatorSettings settings)
Parameters
Type Name Description
IPersistableService service
MarketEmulatorSettings settings

SaveMainWindowSettings(IPersistableService, Window)

Declaration
public static void SaveMainWindowSettings(this IPersistableService service, Window window)
Parameters
Type Name Description
IPersistableService service
Window window

SaveRiskManager(IPersistableService, SettingsStorage)

Declaration
public static void SaveRiskManager(this IPersistableService service, SettingsStorage value)
Parameters
Type Name Description
IPersistableService service
Ecng.Serialization.SettingsStorage value

SetAlertService(IPersistableService, SettingsStorage)

Declaration
public static void SetAlertService(this IPersistableService service, SettingsStorage value)
Parameters
Type Name Description
IPersistableService service
Ecng.Serialization.SettingsStorage value

SetAutoConnect(IPersistableService, Boolean)

Declaration
public static void SetAutoConnect(this IPersistableService service, bool autoConnect)
Parameters
Type Name Description
IPersistableService service
Boolean autoConnect

SetCommonSettings<T>(IPersistableService, T)

Declaration
public static void SetCommonSettings<T>(this IPersistableService service, T settings)
    where T : StudioCommonSettings, new()
Parameters
Type Name Description
IPersistableService service
T settings
Type Parameters
Name Description
T

SetConnector(IPersistableService, SettingsStorage)

Declaration
public static void SetConnector(this IPersistableService service, SettingsStorage value)
Parameters
Type Name Description
IPersistableService service
Ecng.Serialization.SettingsStorage value

SetConnectorWindow(IPersistableService, SettingsStorage)

Declaration
public static void SetConnectorWindow(this IPersistableService service, SettingsStorage value)
Parameters
Type Name Description
IPersistableService service
Ecng.Serialization.SettingsStorage value

SetDaysLoad(IPersistableService)

Declaration
public static void SetDaysLoad(this IPersistableService service)
Parameters
Type Name Description
IPersistableService service

SetDoNotShowQuestionWindow(IPersistableService, Boolean)

Declaration
public static void SetDoNotShowQuestionWindow(this IPersistableService service, bool doNotShow)
Parameters
Type Name Description
IPersistableService service
Boolean doNotShow

SetDriveCache(IPersistableService, SettingsStorage)

Declaration
public static void SetDriveCache(this IPersistableService service, SettingsStorage storage)
Parameters
Type Name Description
IPersistableService service
Ecng.Serialization.SettingsStorage storage

SetIsFirstRun(IPersistableService, Boolean)

Declaration
public static void SetIsFirstRun(this IPersistableService service, bool value)
Parameters
Type Name Description
IPersistableService service
Boolean value

SetLayout(IPersistableService, Func<SettingsStorage>)

Declaration
public static void SetLayout(this IPersistableService service, Func<SettingsStorage> getLayout)
Parameters
Type Name Description
IPersistableService service
Func<Ecng.Serialization.SettingsStorage> getLayout

SetNextTimeFeedback(IPersistableService, DateTime)

Declaration
public static void SetNextTimeFeedback(this IPersistableService service, DateTime date)
Parameters
Type Name Description
IPersistableService service
DateTime date

SetReferences(IPersistableService, IEnumerable<CodeReference>)

Declaration
public static void SetReferences(this IPersistableService service, IEnumerable<CodeReference> references)
Parameters
Type Name Description
IPersistableService service
IEnumerable<CodeReference> references

SetRibbon(IPersistableService, String)

Declaration
public static void SetRibbon(this IPersistableService service, string ribbon)
Parameters
Type Name Description
IPersistableService service
String ribbon

SetSettings<T>(IPersistableService, String, T)

Declaration
public static void SetSettings<T>(this IPersistableService service, string key, T settings)
    where T : class, IPersistable, new()
Parameters
Type Name Description
IPersistableService service
String key
T settings
Type Parameters
Name Description
T

SetStorageFormat(IPersistableService)

Declaration
public static void SetStorageFormat(this IPersistableService service)
Parameters
Type Name Description
IPersistableService service

SetStudioSession(IPersistableService, SettingsStorage)

Declaration
public static void SetStudioSession(this IPersistableService service, SettingsStorage session)
Parameters
Type Name Description
IPersistableService service
Ecng.Serialization.SettingsStorage session

SetTheme(IPersistableService, String)

Declaration
public static void SetTheme(this IPersistableService service, string theme)
Parameters
Type Name Description
IPersistableService service
String theme

TryLoadSettings(IPersistableService, String, Action<SettingsStorage>)

Declaration
public static void TryLoadSettings(this IPersistableService service, string name, Action<SettingsStorage> load)
Parameters
Type Name Description
IPersistableService service
String name
Action<Ecng.Serialization.SettingsStorage> load

TryLoadSettings<T>(SettingsStorage, String, Action<T>)

Declaration
public static void TryLoadSettings<T>(this SettingsStorage storage, string name, Action<T> load)
    where T : class
Parameters
Type Name Description
Ecng.Serialization.SettingsStorage storage
String name
Action<T> load
Type Parameters
Name Description
T

TryLoadSettings<T>(IPersistableService, String, Action<T>)

Declaration
public static void TryLoadSettings<T>(this IPersistableService service, string name, Action<T> load)
Parameters
Type Name Description
IPersistableService service
String name
Action<T> load
Type Parameters
Name Description
T
☀
☾
In This Article
Back to top
Copyright © StockSharp.
☀
☾