/// <summary> /// Injects instance with public properties marked with Inject attribute. /// </summary> /// <param name="injectServices"> /// The inject services. /// </param> /// <param name="instance"> /// The instance. /// </param> public static void Inject([NotNull] this IInjectServices injectServices, [NotNull] object instance) { CodeContracts.VerifyNotNull(injectServices, "injectServices"); CodeContracts.VerifyNotNull(instance, "instance"); injectServices.InjectMarked <Inject>(instance); }
/// <summary> /// Initializes a new instance of the <see cref="ProcessReplaceRulesProvider"/> class. /// </summary> /// <param name="objectStore"> /// </param> /// <param name="serviceLocator"> /// The service locator. /// </param> /// <param name="injectServices"> /// The inject services. /// </param> /// <param name="uniqueFlags"> /// The unique Flags. /// </param> public ProcessReplaceRulesProvider( [NotNull] IObjectStore objectStore, [NotNull] IServiceLocator serviceLocator, [NotNull] IInjectServices injectServices, [NotNull] IEnumerable <bool> uniqueFlags) { this.ServiceLocator = serviceLocator; this._objectStore = objectStore; this._injectServices = injectServices; this._uniqueFlags = uniqueFlags; }
/// <summary> /// Initializes a new instance of the <see cref="CurrentBoardSettings"/> class. /// </summary> /// <param name="injectServices"> /// The inject services. /// </param> /// <param name="haveBoardId"> /// The have board id. /// </param> /// <param name="treatCacheKey"> /// The treat Cache Key. /// </param> public CurrentBoardSettings( [NotNull] IInjectServices injectServices, [NotNull] IHaveBoardID haveBoardId, [NotNull] ITreatCacheKey treatCacheKey) { CodeContracts.VerifyNotNull(injectServices, "injectServices"); CodeContracts.VerifyNotNull(haveBoardId, "haveBoardId"); CodeContracts.VerifyNotNull(treatCacheKey, "treatCacheKey"); this.injectServices = injectServices; this.haveBoardId = haveBoardId; this.treatCacheKey = treatCacheKey; }
/// <summary> /// Initializes a new instance of the <see cref="CurrentBoardSettings"/> class. /// </summary> /// <param name="applicationStateBase"> /// The application state base. /// </param> /// <param name="injectServices"> /// The inject services. /// </param> /// <param name="haveBoardId"> /// The have board id. /// </param> /// <param name="treatCacheKey"> /// </param> /// <param name="boardRepository"> /// The board Repository. /// </param> public CurrentBoardSettings( [NotNull] HttpApplicationStateBase applicationStateBase, [NotNull] IInjectServices injectServices, [NotNull] IHaveBoardID haveBoardId, [NotNull] ITreatCacheKey treatCacheKey) { CodeContracts.VerifyNotNull(applicationStateBase, "applicationStateBase"); CodeContracts.VerifyNotNull(injectServices, "injectServices"); CodeContracts.VerifyNotNull(haveBoardId, "haveBoardId"); CodeContracts.VerifyNotNull(treatCacheKey, "treatCacheKey"); this._applicationStateBase = applicationStateBase; this._injectServices = injectServices; this._haveBoardId = haveBoardId; this._treatCacheKey = treatCacheKey; }
/// <summary> /// Initializes a new instance of the <see cref="YafDbLoggerProvider"/> class. /// </summary> /// <param name="injectServices"> /// The inject services. /// </param> public YafDbLoggerProvider([NotNull] IInjectServices injectServices) { this.InjectServices = injectServices; }
/// <summary> /// Initializes a new instance of the <see cref="BoardContextPageProvider"/> class. /// </summary> /// <param name="lifetimeScope"> /// The container. /// </param> /// <param name="injectServices"> /// The inject Services. /// </param> public BoardContextPageProvider(ILifetimeScope lifetimeScope, IInjectServices injectServices) { this._lifetimeScope = lifetimeScope; this._injectServices = injectServices; }