コード例 #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);
            }
        }