/tags/stable-1.1.0/Server/FastCgi/ApplicationCollection.cs
# · C# · 39 lines · 25 code · 6 blank · 8 comment · 2 complexity · 27cb6fb0aee83d2bdf853d1f84825813 MD5 · raw file
- //-----------------------------------------------------------------------
- // <copyright>
- // Copyright (C) Ruslan Yakushev for the PHP Manager for IIS project.
- //
- // This file is subject to the terms and conditions of the Microsoft Public License (MS-PL).
- // See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL for more details.
- // </copyright>
- //-----------------------------------------------------------------------
-
- using System;
- using Microsoft.Web.Administration;
-
- namespace Web.Management.PHP.FastCgi
- {
-
- internal class FastCgiApplicationCollection : ConfigurationElementCollectionBase<ApplicationElement>
- {
-
- protected override ApplicationElement CreateNewElement(string elementTagName)
- {
- return new ApplicationElement();
- }
-
- public ApplicationElement GetApplication(string fullPath, string arguments)
- {
- for (int i = 0; i < Count; i++)
- {
- ApplicationElement element = base[i];
- if (String.Equals(fullPath, element.FullPath, StringComparison.OrdinalIgnoreCase) &&
- String.Equals(arguments, element.Arguments, StringComparison.OrdinalIgnoreCase))
- {
- return element;
- }
- }
- return null;
- }
-
- }
- }