コード例 #1
0
 public ProfileGateway(IProfileReadonly profile, AccountName accountName, ITpBus bus)
 {
     _profile     = profile;
     _accountName = accountName;
     _bus         = bus;
     _storage     = _profile.Get <ITargetProcessMessage>();
 }
コード例 #2
0
 public SetEnableForTp2(IPluginContext pluginContext, IActivityLogger log, IProfileCollection profileCollection, ITpBus bus)
 {
     _pluginContext     = pluginContext;
     _log               = log;
     _profileCollection = profileCollection;
     _bus               = bus;
 }
コード例 #3
0
		public SetEnableForTp2(IPluginContext pluginContext, IActivityLogger log, IProfileCollection profileCollection, ITpBus bus)
		{
			_pluginContext = pluginContext;
			_log = log;
			_profileCollection = profileCollection;
			_bus = bus;
		}
コード例 #4
0
		public BuildSearchIndexesCommand(ITpBus bus, IProfileCollection profileCollection, IPluginContext pluginContext, IPluginMetadata pluginMetadata)
		{
			_bus = bus;
			_profileCollection = profileCollection;
			_pluginContext = pluginContext;
			_pluginMetadata = pluginMetadata;
		}
コード例 #5
0
		public ProfileGateway(IProfileReadonly profile, AccountName accountName, ITpBus bus)
		{
			_profile = profile;
			_accountName = accountName;
			_bus = bus;
			_storage = _profile.Get<ITargetProcessMessage>();
		}
コード例 #6
0
 public BuildSearchIndexesCommand(ITpBus bus, IProfileCollection profileCollection, IPluginContext pluginContext, IPluginMetadata pluginMetadata)
 {
     _bus = bus;
     _profileCollection = profileCollection;
     _pluginContext     = pluginContext;
     _pluginMetadata    = pluginMetadata;
 }
コード例 #7
0
 public MashupInfoRepository(ILogManager logManager, IPluginContext context, ITpBus bus, IMashupScriptStorage scriptStorage)
 {
     _bus = bus;
     _scriptStorage = scriptStorage;
     _log = logManager.GetLogger(GetType());
     _context = context;
 }
コード例 #8
0
 public PluginRuntime(IPluginPersister pluginPersister, EventAggregator eventAggregator, ITpBus bus)
 {
     _pluginPersister = pluginPersister;
     _eventAggregator = eventAggregator;
     _bus             = bus;
     _eventAggregator.Get <Event <AccountCollectionCreated> >().Subscribe(OnAccountCollectionCreated);
     _eventAggregator.Get <Event <ProfileChanged> >().Subscribe(OnProfileChanged);
 }
コード例 #9
0
		protected ThenClause(ParseNode clauseNode, ITpBus bus, IStorageRepository storage)
		{
			_bus = bus;
			_storage = storage;

			var projectIdNode = ClauseFactory.FindRecursive(TokenType.NUMBER, clauseNode);
			_projectId = Int32.Parse(projectIdNode.Token.Text);
		}
コード例 #10
0
		public PluginRuntime(IPluginPersister pluginPersister, EventAggregator eventAggregator, ITpBus bus)
		{
			_pluginPersister = pluginPersister;
			_eventAggregator = eventAggregator;
			_bus = bus;
			_eventAggregator.Get<Event<AccountCollectionCreated>>().Subscribe(OnAccountCollectionCreated);
			_eventAggregator.Get<Event<ProfileChanged>>().Subscribe(OnProfileChanged);
		}
コード例 #11
0
        protected ThenClause(ParseNode clauseNode, ITpBus bus, IStorageRepository storage)
        {
            _bus     = bus;
            _storage = storage;

            var projectIdNode = ClauseFactory.FindRecursive(TokenType.NUMBER, clauseNode);

            _projectId = Int32.Parse(projectIdNode.Token.Text);
        }
コード例 #12
0
 public MashupInfoRepository(ILogManager logManager, IPluginContext context, ITpBus bus, IMashupScriptStorage scriptStorage)
 {
     _bus                      = bus;
     _scriptStorage            = scriptStorage;
     _context                  = context;
     _lazyMashupManagerProfile =
         Lazy.Create(() => ObjectFactory.GetInstance <ISingleProfile>().Profile.GetProfile <MashupManagerProfile>());
     _log = logManager.GetLogger(GetType());
 }
コード例 #13
0
		public MashupInfoRepository(ILogManager logManager, IPluginContext context, ITpBus bus, IMashupScriptStorage scriptStorage)
		{
			_bus = bus;
			_scriptStorage = scriptStorage;
			_context = context;
			_lazyMashupManagerProfile =
				Lazy.Create(() => ObjectFactory.GetInstance<ISingleProfile>().Profile.GetProfile<MashupManagerProfile>());
			_log = logManager.GetLogger(GetType());
		}
コード例 #14
0
		public void Dispose()
		{
			if (_disposed) return;
			_disposed = true;

			_accountName = null;
			_bus = null;
			_storage = null;
		}
コード例 #15
0
 public RunAtStartStopInitializer()
 {
     _documentIndexProvider = ObjectFactory.GetInstance <IDocumentIndexProvider>();
     _log = ObjectFactory.GetInstance <IActivityLogger>();
     _profileCollection = ObjectFactory.GetInstance <IProfileCollection>();
     _isOnSite          = ObjectFactory.GetInstance <IMsmqTransport>().RoutableTransportMode == RoutableTransportMode.OnSite;
     _bus            = ObjectFactory.GetInstance <ITpBus>();
     _pluginContext  = ObjectFactory.GetInstance <IPluginContext>();
     _pluginMetadata = ObjectFactory.GetInstance <IPluginMetadata>();
 }
コード例 #16
0
 protected PluginInfoSender()
 {
     _context = ObjectFactory.GetInstance<IPluginContext>();
     _bus = ObjectFactory.GetInstance<ITpBus>();
     PluginMetadata = ObjectFactory.GetInstance<IPluginMetadata>();
     _accountCollection = ObjectFactory.GetInstance<IAccountCollection>();
     _pluginQueueFactory = ObjectFactory.GetInstance<IPluginQueueFactory>();
     _pluginSettings = ObjectFactory.GetInstance<IPluginSettings>();
     _pluginIcon = ObjectFactory.GetInstance<PluginIcon>();
 }
コード例 #17
0
		public RunAtStartStopInitializer()
		{
			_documentIndexProvider = ObjectFactory.GetInstance<IDocumentIndexProvider>();
			_log = ObjectFactory.GetInstance <IActivityLogger>();
			_profileCollection = ObjectFactory.GetInstance<IProfileCollection>();
			_isOnSite = ObjectFactory.GetInstance<IMsmqTransport>().RoutableTransportMode == RoutableTransportMode.OnSite;
			_bus = ObjectFactory.GetInstance<ITpBus>();
			_pluginContext = ObjectFactory.GetInstance<IPluginContext>();
			_pluginMetadata = ObjectFactory.GetInstance<IPluginMetadata>();
		}
コード例 #18
0
 public DocumentIndexRebuilder(IDocumentIndexProvider documentIndexProvider, DocumentIndexSetup documentIndexSetup, ITpBus bus, IPluginContext pluginContext, IPluginMetadata pluginMetadata, IProfileCollection profileCollection, IProfile profile, IActivityLogger logger)
 {
     _documentIndexProvider = documentIndexProvider;
     _documentIndexSetup = documentIndexSetup;
     _bus = bus;
     _pluginContext = pluginContext;
     _pluginMetadata = pluginMetadata;
     _profileCollection = profileCollection;
     _profile = profile;
     _logger = logger;
 }
コード例 #19
0
 public DocumentIndexRebuilder(IDocumentIndexProvider documentIndexProvider, DocumentIndexSetup documentIndexSetup, ITpBus bus, IPluginContext pluginContext, IPluginMetadata pluginMetadata, IProfileCollection profileCollection, IProfile profile, IActivityLogger logger)
 {
     _documentIndexProvider = documentIndexProvider;
     _documentIndexSetup    = documentIndexSetup;
     _bus               = bus;
     _pluginContext     = pluginContext;
     _pluginMetadata    = pluginMetadata;
     _profileCollection = profileCollection;
     _profile           = profile;
     _logger            = logger;
 }
コード例 #20
0
        public void Dispose()
        {
            if (_disposed)
            {
                return;
            }
            _disposed = true;

            _accountName = null;
            _bus         = null;
            _storage     = null;
        }
コード例 #21
0
		private ThenCreateRequestClause(ParseNode clauseNode, ITpBus bus, IStorageRepository storage, bool isPrivate = false)
			: base(clauseNode, bus, storage)
		{
			var attachToRequestPart = ClauseFactory.FindRecursive(TokenType.AttachRequestToTeamPart, clauseNode.Parent);
			if (attachToRequestPart != null)
			{
				foreach (var squadIdNode in from node in attachToRequestPart.Nodes
				                            where node.Token.Type == TokenType.AttachRequestToTeamClause
				                            select ClauseFactory.FindRecursive(TokenType.NUMBER, node))
				{
					_squadId = System.Int32.Parse(squadIdNode.Token.Text);
					break;
				}
			}

			_isPrivate = isPrivate;
		}
コード例 #22
0
        public AccountHandler([NotNull] IAccountCollection collection, [NotNull] ITpBus bus, [NotNull] IPluginContext context,
                              [NotNull] ILogManager logManager, [NotNull] IMsmqTransport msmqTransport)
        {
            if (collection == null)
            {
                throw new NullReferenceException("collection");
            }

            if (bus == null)
            {
                throw new ArgumentNullException("bus");
            }

            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            _collection    = collection;
            _bus           = bus;
            _context       = context;
            _msmqTransport = msmqTransport;
            _log           = logManager.GetLogger(this.GetType());
        }
コード例 #23
0
		public RescanRepositoryCommand(ITpBus bus, IPluginContext pluginContext)
		{
			_bus = bus;
			_pluginContext = pluginContext;
		}
 public AutomaticOnDemandProfileCreator(IPluginContext pluginContext, ITpBus bus)
 {
     _pluginContext = pluginContext;
     _bus           = bus;
 }
コード例 #25
0
		public DeleteProfileCommand(IProfileCollection profileCollection, ITpBus bus, IPluginContext pluginContext)
			: base(profileCollection, bus, pluginContext)
		{
		}
コード例 #26
0
 public DeleteProfileCommand(IProfileCollection profileCollection, ITpBus bus, IPluginContext pluginContext)
     : base(profileCollection, bus, pluginContext)
 {
 }
コード例 #27
0
 private ThenCreateRequestClause(ParseNode clauseNode, ITpBus bus, IStorageRepository storage)
     : base(clauseNode, bus, storage)
 {
 }
コード例 #28
0
 public AddProfileCommand(ITpBus bus, IProfileCollection profileCollection, IPluginContext pluginContext,
                          IPluginMetadata pluginMetadata)
     : base(profileCollection, bus, pluginContext, pluginMetadata)
 {
 }
コード例 #29
0
 public DeleteProfileCommandHandler(ITpBus tpBus, IPluginMetadata pluginMetadata)
 {
     _tpBus          = tpBus;
     _pluginMetadata = pluginMetadata;
 }
コード例 #30
0
 public ThenAttachToProjectClause(ParseNode clauseNode, ITpBus bus, IStorageRepository storage)
     : base(clauseNode, bus, storage)
 {
 }
 public TpGeneralUserChangedMessageHandler(ITpBus tpBus, UserRepository userRepository)
 {
     _tpBus          = tpBus;
     _userRepository = userRepository;
 }
コード例 #32
0
		public ProfileGatewayFactory(ITpBus tpBus)
		{
			_tpBus = tpBus;
		}
コード例 #33
0
		public AddOrUpdateProfileCommand(ITpBus bus, IProfileCollection profileCollection, IPluginContext pluginContext,
		                                 IPluginMetadata pluginMetadata)
			: base(profileCollection, bus, pluginContext, pluginMetadata)
		{
			_profileCollection = profileCollection;
		}
コード例 #34
0
 public ProfileGatewayFactory(ITpBus tpBus)
 {
     _tpBus = tpBus;
 }
コード例 #35
0
 public RescanRepositoryCommand(ITpBus bus, IPluginContext pluginContext)
 {
     _bus           = bus;
     _pluginContext = pluginContext;
 }
		public AutomaticOnDemandProfileCreator(IPluginContext pluginContext, ITpBus bus)
		{
			_pluginContext = pluginContext;
			_bus = bus;
		}
コード例 #37
0
		public ThenAttachToProjectClause(ParseNode clauseNode, ITpBus bus, IStorageRepository storage)
			: base(clauseNode, bus, storage)
		{
		}
コード例 #38
0
 public PluginCommandHandler(ITpBus tpBus, IPluginCommandRepository pluginCommandRepository, ILogManager logManager)
 {
     _tpBus = tpBus;
     _pluginCommandRepository = pluginCommandRepository;
     _log = logManager.GetLogger(GetType());
 }
コード例 #39
0
		protected EditProfileCommandBase(IProfileCollection profileCollection, ITpBus bus, IPluginContext pluginContext,
		                                 IPluginMetadata pluginMetadata)
			: base(profileCollection, bus, pluginContext)
		{
			_pluginMetadata = pluginMetadata;
		}
コード例 #40
0
		protected ProfileCommandBase(IProfileCollection profileCollection, ITpBus bus, IPluginContext pluginContext)
		{
			_profileCollection = profileCollection;
			_bus = bus;
			_pluginContext = pluginContext;
		}
コード例 #41
0
 public MashupForTp2(ITpBus bus)
 {
     _bus = bus;
 }
		private ThenCreatePublicRequestClause(ParseNode clauseNode, ITpBus bus, IStorageRepository storage)
			: base(clauseNode, bus, storage)
		{
		}
コード例 #43
0
 protected EditProfileCommandBase(IProfileCollection profileCollection, ITpBus bus, IPluginContext pluginContext,
                                  IPluginMetadata pluginMetadata)
     : base(profileCollection, bus, pluginContext)
 {
     _pluginMetadata = pluginMetadata;
 }
コード例 #44
0
 public PluginGateway(ITpBus bus, IPluginContext pluginContext, IProfileCollection profileCollection)
 {
     _bus               = bus;
     _pluginContext     = pluginContext;
     _profileCollection = profileCollection;
 }
コード例 #45
0
 protected ProfileCommandBase(IProfileCollection profileCollection, ITpBus bus, IPluginContext pluginContext)
 {
     _profileCollection = profileCollection;
     _bus           = bus;
     _pluginContext = pluginContext;
 }