Beispiel #1
0
        private void DisableControl(DisableCameraControlMessage message)
        {
            if (context.IsDisabled)
            {
                return;
            }

            context.Disable();

            enableDisableSubscriptionToken.Dispose();

            enableDisableSubscriptionToken = messengerHub.Subscribe <EnableCameraControlMessage>(EnableControl);

            logger.Info("Disabled camera control");
        }
 /// <summary>
 /// Registers <see cref="DefaultTransactionManager"/> as the transaction manager.
 /// </summary>
 protected void RegisterTransactionManager()
 {
     if (!Kernel.HasComponent(typeof(ITransactionManager)))
     {
         log.Info("No Transaction Manager registered on Kernel, registering default Transaction Manager");
         Kernel.Register(
             Component.For <ITransactionManager>().ImplementedBy <DefaultTransactionManager>().Named(TransactionManagerKey));
     }
 }