Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NodeConfigurationService"/> class.
 /// </summary>
 /// <param name="context">
 /// The context.
 /// </param>
 /// <param name="logging">
 /// The logging.
 /// </param>
 public NodeConfigurationService(NodeRepositoryContext context, INodeRepositoryLogging logging)
 {
     this.Context = context;
     this.ConfigurationPropertyRepository = context.Set <ConfigurationProperty>();
     this.NodeRepository = context.Set <Node>();
     this.Logging        = logging;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BootstrapController"/> class.
 /// </summary>
 /// <param name="context">
 /// The context.
 /// </param>
 /// <param name="nodeService">
 /// The node service.
 /// </param>
 /// <param name="logging">
 /// The logging.
 /// </param>
 public BootstrapController(
     NodeRepositoryContext context,
     INodeConfigurationService nodeService,
     INodeRepositoryLogging logging)
 {
     this.Context        = context;
     this.NodeRepository = context.Set <Node>();
     this.ConfigurationPropertyRepository = context.Set <ConfigurationProperty>();
     this.NodeService = nodeService;
     this.Logging     = logging;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NodeRepositoryContextInitializer"/> class.
 /// </summary>
 /// <param name="logging">
 /// The logging.
 /// </param>
 public NodeRepositoryContextInitializer(INodeRepositoryLogging logging)
 {
     this.Logging = logging;
 }