Ejemplo n.º 1
0
        internal static void UpdateConnectionSettings(FixConnectionStringBuilder builder)
        {
            DataFeedImpl dataFeedImpl = Create();

            lock (s_synchronizer)
            {
                dataFeedImpl.Intialize(builder.ToString());
                string path = ConfirugationPath;
                TrySaveFixConnectionStringBuilder(path, builder);
            }
        }
Ejemplo n.º 2
0
 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);
     }
 }