OpenSim/Region/Framework/Scenes/SceneBase.cs
/// <summary>
/// For the given interface, retrieve the region module which implements it.
/// </summary>
/// <returns>null if there is no registered module implementing that interface</returns>
For the given interface, retrieve the region module which implements it.
For the given interface retrieve the region module which implements it .
public T RequestModuleInterface<T>()
        {
            if (ModuleInterfaces.ContainsKey(typeof(T)) &&
                    (ModuleInterfaces[typeof(T)].Count > 0))
                return (T)ModuleInterfaces[typeof(T)][0];
            else
                return default(T);
        }
public T RequestModuleInterface < T > ( ) { if ( ModuleInterfaces . ContainsKey ( typeof ( T ) ) && ( ModuleInterfaces [ typeof ( T ) ] . Count > 0 ) ) return ( T ) ModuleInterfaces [ typeof ( T ) ] [ 0 ] ; else return default ( T ) ; }
For the given interface, retrieve the region module which implements it.
For the given interface retrieve the region module which implements it .
null if there is no registered module implementing that interface
null if there is no registered module implementing that interface