コード例 #1
0
ファイル: Program.cs プロジェクト: RazorGator/sdk_net
        static void Main(string[] args)
        {
            #region logger setup [Optional]

            // setting up a logger facade to the system logger using the ILog interface
            // if a logger facade is created it will enable a peek into the logs created by the SDK and will help understand issues easier
            var logger = new SimpleExampleLogger();
            LoggingServices.InitializeLogger(logger);

            #endregion


            # region notification example
            
            NotificationServerExample.ReceiveNotificationsExample();

            #endregion

            #region orders example
            
            OrderTransmissionExample.SendOrdersToRiskifiedExample();

            #endregion


            // make sure to shut down the notifications server when done
            NotificationServerExample.StopNotificationServer();
            
        }
コード例 #2
0
        static int Main(string[] args)
        {
            #region logger setup [Optional]

            // setting up a logger facade to the system logger using the ILog interface
            // if a logger facade is created it will enable a peek into the logs created by the SDK and will help understand issues easier
            var logger = new SimpleExampleLogger();
            LoggingServices.InitializeLogger(logger);

            #endregion

            # region run all api endpoints
            if (args.Length > 0 && args[0] == "run_all")