Пример #1
0
        public int CheckScheduleCount()
        {
            WCF.PlayerServiceClient client = new WCF.PlayerServiceClient();
            try
            {

                using (OperationContextScope scope = new OperationContextScope(client.InnerChannel))
                {

                    SetHeader(scope);

                    int result =  client.CheckScheduleCount();

                    client.Close();
                    return result;
                }
            }
            catch (Exception exp)
            {
                MessageBox.Show(exp.Message);
            }
            return -1;
        }