private ApplicationViewModel() { ChatClient = new ChatServiceClient(callback); Logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); log4net.Config.XmlConfigurator.Configure(); ApplicationId = BuiltIns._9258ChatApplication.Id; Root = Environment.CurrentDirectory; FlexFile = Path.Combine(Root, Const.FlexFile); MusicFlexFile = Path.Combine(Root, Const.MusicFlexFile); ApplicationName = "9258"; ProfileVM = Singleton<ProfileViewModel>.Instance; LocalCache = Singleton<LocalCache>.Instance; OnMicImageUrl = Path.Combine(Root, @"Images\onMic.jpg"); DownMicImageUrl = Path.Combine(Root, @"Images\downMic.jpg"); }
static ChatServiceCache() { client = new ChatServiceClient(new ChatServiceCallback()); }
public void SwitchUser() { LogOff(); ChatClient = new ChatServiceClient(callback); }
static ChatServiceCache() { client = new ChatServiceClient(new ChatServiceCallback()); }