#region S# License /****************************************************************************************** NOTICE!!! This program and source code is owned and licensed by StockSharp, LLC, www.stocksharp.com Viewing or use of this code requires your acceptance of the license agreement found at https://github.com/StockSharp/StockSharp/blob/master/LICENSE Removal of this comment is a violation of the license agreement. Project: StockSharp.Community.Community File: BaseCommunityClient.cs Created: 2015, 11, 11, 2:32 PM Copyright 2010 by StockSharp, LLC *******************************************************************************************/ #endregion S# License namespace StockSharp.Community { using System; using Ecng.Localization; using StockSharp.Localization; /// /// The base client for access to the StockSharp services. /// /// WCF service type. public abstract class BaseCommunityClient : BaseServiceClient where TService : class { /// /// Initialize . /// /// Server address. /// The access point name in the configuration file. /// Whether the has events. protected BaseCommunityClient(Uri address, string endpointName, bool hasCallbacks = false) : base(address, endpointName, hasCallbacks) { } /// /// The session identifier received from . /// protected virtual Guid SessionId => AuthenticationClient.Instance.SessionId; /// /// To get the if the user was authorized. /// protected virtual Guid? NullableSessionId => AuthenticationClient.Instance.NullableSessionId; /// /// Is current language is English. /// protected static bool IsEnglish => LocalizedStrings.ActiveLanguage != Languages.Russian; } }