internal static void UpdateConnectionSettings(FixConnectionStringBuilder builder) { DataFeedImpl dataFeedImpl = Create(); lock (s_synchronizer) { dataFeedImpl.Intialize(builder.ToString()); string path = ConfirugationPath; TrySaveFixConnectionStringBuilder(path, builder); } }
internal static DataFeedImpl Create() { lock (s_synchronizer) { if (null == s_impl) { s_impl = new DataFeedImpl(); FixConnectionStringBuilder builder = LoadConnectionSettings(); if (null != builder) { string connectionString = builder.ToString(); s_impl.Intialize(connectionString); } } s_counter++; return(s_impl); } }