Confuser.Core/ServiceRegistry.cs
/// <summary>
///     Registers the service with specified ID .
/// </summary>
/// <param name="serviceId">The service identifier.</param>
/// <param name="serviceType">The service type.</param>
/// <param name="service">The service.</param>
/// <exception cref="T:System.ArgumentException">Service with same ID or type has already registered.</exception>
// Token: 0x0600030B RID: 779 RVA: 0x00012D04 File Offset: 0x00010F04
Registers the service with specified ID .
Registers the service with specified ID .
public void RegisterService(string serviceId, Type serviceType, object service)
		{
			if (!this.serviceIds.Add(serviceId))
			{
				throw new ArgumentException("Service with ID '" + this.serviceIds + "' has already registered.", "serviceId");
			}
			if (this.services.ContainsKey(serviceType))
			{
				throw new ArgumentException("Service with type '" + service.GetType().Name + "' has already registered.", "service");
			}
			this.services.Add(serviceType, service);
		}
public void RegisterService ( string serviceId , Type serviceType , object service ) { if ( ! this . serviceIds . Add ( serviceId ) ) { throw new ArgumentException ( " " + this . serviceIds + " " , " " ) ; } if ( this . services . ContainsKey ( serviceType ) ) { throw new ArgumentException ( " " + service . GetType ( ) . Name + " " , " " ) ; } this . services . Add ( serviceType , service ) ; }
Registers the service with specified ID .
Registers the service with specified ID .
Service with same ID or type has already registered.
Service with same ID or type has already registered .
serviceId
string
The service identifier.
The service identifier .
serviceType
Type
The service type.
The service type .
service
object
None