/// <summary> /// Loads the ORTC factory with the specified ORTC type. /// </summary> /// <param name="ortcType">The type of the ORTC client created by the factory.</param> /// <returns>Loaded instance of ORTC factory of the specified ORTC type.</returns> /// <example> /// <code> /// var api = new Api.Ortc("Plugins"); /// /// IOrtcFactory factory = api.LoadOrtcFactory("IbtRealTimeSJ"); /// /// // Use the factory instance to create new clients /// </code> /// </example> public IOrtcFactory LoadOrtcFactory(string ortcType) { IOrtcFactory iOFactory = new Ibt.Ortc.Plugin.IbtRealTimeSJ.IbtRealTimeSJFactory(); return(iOFactory); //Lazy<IOrtcFactory, IOrtcFactoryAttributes> factory = OrtcProviders.Where(f => f.Metadata.FactoryType.Equals(ortcType, StringComparison.OrdinalIgnoreCase)).FirstOrDefault(); //return factory == null ? null : factory.Value; }
/// <summary> /// Loads the ORTC factory with the specified ORTC type. /// </summary> /// <param name="ortcType">The type of the ORTC client created by the factory.</param> /// <returns>Loaded instance of ORTC factory of the specified ORTC type.</returns> /// <example> /// <code> /// var api = new Api.Ortc("Plugins"); /// /// IOrtcFactory factory = api.LoadOrtcFactory("IbtRealTimeSJ"); /// /// // Use the factory instance to create new clients /// </code> /// </example> public IOrtcFactory LoadOrtcFactory(string ortcType) { IOrtcFactory iOFactory = new Ibt.Ortc.Plugin.IbtRealTimeSJ.IbtRealTimeSJFactory(); return iOFactory; //Lazy<IOrtcFactory, IOrtcFactoryAttributes> factory = OrtcProviders.Where(f => f.Metadata.FactoryType.Equals(ortcType, StringComparison.OrdinalIgnoreCase)).FirstOrDefault(); //return factory == null ? null : factory.Value; }