コード例 #1
0
 public DefaultyProxyMethodBuilder(IMethodBodyEmitter emitter)
 {
     if (emitter == null)
     {
         throw new ArgumentNullException("emitter");
     }
     MethodBodyEmitter = emitter;
 }
コード例 #2
0
		public DefaultyProxyMethodBuilder(IMethodBodyEmitter emitter)
		{
			if (emitter == null)
			{
				throw new ArgumentNullException("emitter");
			}
			MethodBodyEmitter = emitter;
		}
コード例 #3
0
 /// <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));
 }
コード例 #4
0
 /// <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));
 }
コード例 #5
0
 public DefaultyProxyMethodBuilder(IMethodBodyEmitter emitter)
 {
     _emitter = emitter;
 }
コード例 #6
0
 public DefaultyProxyMethodBuilder(IMethodBodyEmitter emitter)
 {
     _emitter = emitter;
 }