Domain.DomainController.onStart C# (CSharp) Method

onStart() public method

public onStart ( string type ) : void
type string
return void
        public void onStart(string type)
        {
            switch (type)
            {
                case "M1":
                    Persistance.DBController.setController(PersistanceTypes.Persistance1);
                    break;
                case "M2":
                    Persistance.DBController.setController(PersistanceTypes.Persistance2);
                    break;
                default:
                    throw new Exception("There is no such persistance available");
            }

        }
    }