コード例 #1
0
 /// <summary>
 /// Register the commands and node maps needed for the design manager into the design time.
 /// </summary>
 /// <param name="serviceProvider">The a mechanism for retrieving a service object; that is, an object that provides custom support to other objects.</param>
 public override void Register(IServiceProvider serviceProvider)
 {
     LoggingDatabaseCommandRegistrar cmdRegistrar = new LoggingDatabaseCommandRegistrar(serviceProvider);
     cmdRegistrar.Register();
     LoggingDatabaseNodeMapRegistrar nodeRegistrar = new LoggingDatabaseNodeMapRegistrar(serviceProvider);
     nodeRegistrar.Register();
 }
        /// <summary>
        /// Register the commands and node maps needed for the design manager into the design time.
        /// </summary>
        /// <param name="serviceProvider">The a mechanism for retrieving a service object; that is, an object that provides custom support to other objects.</param>
        public override void Register(IServiceProvider serviceProvider)
        {
            LoggingDatabaseCommandRegistrar cmdRegistrar = new LoggingDatabaseCommandRegistrar(serviceProvider);

            cmdRegistrar.Register();
            LoggingDatabaseNodeMapRegistrar nodeRegistrar = new LoggingDatabaseNodeMapRegistrar(serviceProvider);

            nodeRegistrar.Register();
        }