Start() private method

private Start ( ) : IEnumerator
return IEnumerator
Exemplo n.º 1
0
        /// <summary>
        /// Beginnt mit der Bearbeitung der Daten.
        /// </summary>
        /// <param name="start">Zeitinformation für den Beginn der Weitergabe
        /// von Nutzdaten in den Graphen.</param>
        /// <returns>Ergebnis der Operation.</returns>
        public Int32 Run(long start)
        {
            // Blind transition
            m_State = FilterStates.Running;

            // Forward to all
            if (DataManager != null)
            {
                DataManager.Start();
            }

            // Did it
            return(0);
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            DataManager dm = new DataManager(11000);

            dm.Start();
            dm.GetLocation();

            DMLocation     dmLocation      = new DMLocation("127.0.0.1:11000");//(@"db://[fe80::a91e:3a94:e27a:9035%13]:11000");
            ObjectLocation objectLocation0 = new ObjectLocation(ObjectType.FileWithHeader, @"C:\DB\arrayName.db", 0);
            ObjectLocation objectLocation1 = new ObjectLocation(ObjectType.FileWithHeader, @"C:\DB\arrayName.db", 1);
            DataLocation   dataLocation0   = new DataLocation(dmLocation, objectLocation0);
            DataLocation   dataLocation1   = new DataLocation(dmLocation, objectLocation1);

            //First transaction
            Transaction t = new Transaction();

            t.Begin();

            t.Write(dataLocation0, 42);
            t.Write(dataLocation1, 77);
            Console.WriteLine("Read: " + t.Read(dataLocation0));
            Console.WriteLine("Read: " + t.Read(dataLocation1));

            //Second transaction
            Transaction t2 = new Transaction();

            t2.Begin();
            t2.Write(dataLocation1, 99);
            Console.WriteLine("Read: " + t2.Read(dataLocation1));

            t.End();

            t2.End();

            dm.Stop();

            Console.WriteLine("Press Enter....");
            Console.ReadLine();
        }
Exemplo n.º 3
0
 // Start is called before the first frame update
 private void Start()
 {
     DataManager.Start();
 }