コード例 #1
0
        /// <summary>
        /// Reads the xml file and creates client applications using _settings.
        /// </summary>
        private void CreateApplicationList()
        {
            foreach (var application in _settings.Applications)
            {
                //Create application object
                var clientApplication = new NGRIDClientApplication(application.Name);

                foreach (var channel in application.CommunicationChannels)
                {
                    switch (channel.CommunicationType)
                    {
                    case "WebService":
                        clientApplication.AddCommunicator(
                            new WebServiceCommunicator(
                                channel.CommunicationSettings["Url"],
                                Communication.CommunicationLayer.CreateCommunicatorId()
                                ));
                        break;
                    }
                }

                //Add new application to list
                Applications.Add(clientApplication.Name, clientApplication);
            }
        }
コード例 #2
0
        /// <summary>
        /// Reads the xml file and creates client applications using _settings.
        /// </summary>
        private void CreateApplicationList()
        {
            foreach (var application in _settings.Applications)
            {
                //Create application object
                var clientApplication = new NGRIDClientApplication(application.Name);

                foreach (var channel in application.CommunicationChannels)
                {
                    switch (channel.CommunicationType)
                    {
                        case "WebService":
                            clientApplication.AddCommunicator(
                                new WebServiceCommunicator(
                                    channel.CommunicationSettings["Url"],
                                    Communication.CommunicationLayer.CreateCommunicatorId()
                                    ));
                            break;
                    }
                }

                //Add new application to list
                Applications.Add(clientApplication.Name, clientApplication);
            }
        }