示例#1
0
        static void Main(string[] args)
        {
            /// Define the expected certificate for signing ("<username>_sign" is the expected subject name).
            /// .NET WindowsIdentity class provides information about Windows user running the given process

            /// Define subjectName for certificate used for signing which is not as expected by the service
            var tuple = HelperFunctions.PrepBindingAndAddressForReader(Config.ServiceCertificateCN);

            using (ReaderProxy proxy = new ReaderProxy(tuple.Item1, tuple.Item2))
            {
                int op = -1;

                while (op != 0)
                {
                    op = DisplayReaderMenu();
                    ExecuteCommand(proxy, op);
                }
            }

            Console.ReadLine();
        }
示例#2
0
 static void ExecuteCommand(ReaderProxy proxy, int op)
 {
     HelperFunctions.ExecuteCommandReader(proxy, op);
 }