public DefaultyProxyMethodBuilder(IMethodBodyEmitter emitter) { if (emitter == null) { throw new ArgumentNullException("emitter"); } MethodBodyEmitter = emitter; }
/// <summary> /// Initializes the class with the <paramref name="source"/> container. /// </summary> /// <param name="source">The <see cref="IServiceContainer"/> instance that will create the class instance.</param> public virtual void Initialize(IServiceContainer source) { Emitter = (IMethodBodyEmitter)source.GetService(typeof(IMethodBodyEmitter)); }
/// <summary> /// Initializes the class with the <paramref name="source"/> container. /// </summary> /// <param name="source">The <see cref="IServiceContainer"/> instance that will create the class instance.</param> public virtual void Initialize(IServiceContainer source) { Emitter = (IMethodBodyEmitter) source.GetService(typeof (IMethodBodyEmitter)); }
public DefaultyProxyMethodBuilder(IMethodBodyEmitter emitter) { _emitter = emitter; }