예제 #1
0
파일: Program.cs 프로젝트: tharshada/Omex
        private void Run(string[] args)
        {
            GateDataSetLoader = CreateGateDataSetLoader(false);
            Gates gates = new Gates(GateDataSetLoader);

            IGatedRequest gatedRequest = new SampleGatedRequest();
            IGateContext  gateContext  = new GateContext(gatedRequest, null, null);

            gateContext.PerformAction(new GatedAction(gates.GetGate("sample_allowed_gate"), SampleAction));

            Console.WriteLine("Loaded gates:");
            foreach (string gateName in gates.GateNames)
            {
                Console.WriteLine(gateName);
            }
        }