/// <summary> /// Initializes a new instance of the <see cref="Session"/> class. /// Constructor, given a configuration and a back end. /// </summary> /// <param name="config">The configuration.</param> /// <param name="emulatorConnection">Back end.</param> /// <exception cref="ArgumentNullException"><paramref name="emulatorConnection"/> is null.</exception> protected Session(Config config, IBackEnd emulatorConnection) { this.Config = config ?? new Config(); if (emulatorConnection == null) { throw new ArgumentNullException("emulatorConnection"); } this.BackEnd = emulatorConnection; }
public CompilerBase( IFrontEnd frontEnd, IMiddleEnd middleEnd, IBackEnd backEnd, CompilerOptions options ) { _options = options; _frontEnd = frontEnd; _middleEnd = middleEnd; _backEnd = backEnd; _frontEnd.Compiler = this; _middleEnd.Compiler = this; _backEnd.Compiler = this; _resolver = new AssemblyResolver(this); }
public CatsController(IBackEnd svc) { _svc = svc; }
public FullStackDeveloper(IFrontEnd front, IBackEnd back) { _front = front; _back = back; }