OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
BaseServiceConnector.cs
Go to the documentation of this file.
1 using System;
2 using OpenSim.Framework;
3 using OpenSim.Framework.ServiceAuth;
4 
5 using Nini.Config;
6 
7 namespace OpenSim.Services.Connectors
8 {
9  public class BaseServiceConnector
10  {
11  protected IServiceAuth m_Auth;
12 
13  public BaseServiceConnector() { }
14 
15  public BaseServiceConnector(IConfigSource config, string section)
16  {
17  Initialise(config, section);
18  }
19 
20  public void Initialise(IConfigSource config, string section)
21  {
22  string authType = Util.GetConfigVarFromSections<string>(config, "AuthType", new string[] { "Network", section }, "None");
23 
24  switch (authType)
25  {
26  case "BasicHttpAuthentication":
27  m_Auth = new BasicHttpAuthentication(config, section);
28  break;
29  }
30 
31  }
32  }
33 }
void Initialise(IConfigSource config, string section)
BaseServiceConnector(IConfigSource config, string section)