本文整理汇总了C#中IOptionService类的典型用法代码示例。如果您正苦于以下问题:C# IOptionService类的具体用法?C# IOptionService怎么用?C# IOptionService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IOptionService类属于命名空间,在下文中一共展示了IOptionService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MainViewModel
/// <summary>
/// Initializes a new instance of the MainViewModel class.
/// </summary>
public MainViewModel(IDatabaseService databaseService,
IAccountService accountService,
ICategoryService categoryService,
ITransactionService transactionService,
IOptionService optionService)
{
DatabaseService = databaseService;
AccountService = accountService;
TransactionService = transactionService;
CategoryService = categoryService;
OptionService = optionService;
DatabaseService.Initialize();
Rendu = new ObservableCollection<KeyValuePair<string, string>>();
CategoryRunner = new RelayCommand(() => TestCategory());
AccountRunner = new RelayCommand(() => TestAccount());
TransactionRunner = new RelayCommand(() => TestTransaction());
}
示例2: AccountController
public AccountController(ApplicationUserManager userManager, IOrderService orderService,
IOptionService optionService)
{
this.orderService = orderService;
this.optionService = optionService;
UserManager = userManager;
}
示例3: PagePropertiesService
public PagePropertiesService(IRepository repository, IUrlService urlService, IOptionService optionService, IMediaFileUrlResolver fileUrlResolver)
{
this.repository = repository;
this.urlService = urlService;
this.optionService = optionService;
this.fileUrlResolver = fileUrlResolver;
}
示例4: DefaultContentService
public DefaultContentService(ISecurityService securityService, IRepository repository, IUnitOfWork unitOfWork, IOptionService optionService)
{
this.unitOfWork = unitOfWork;
this.securityService = securityService;
this.repository = repository;
this.optionService = optionService;
}
示例5: OptionCategoryController
public OptionCategoryController(IOptionCategoryService optionCategoryService, IOptionService optionService,
ISettingService settingService)
{
this.optionCategoryService = optionCategoryService;
this.optionService = optionService;
this.settingService = settingService;
}
示例6: DefaultContentProjectionService
public DefaultContentProjectionService(PageContentProjectionFactory pageContentProjectionFactory,
IOptionService optionService, IUnitOfWork unitOfWork)
{
this.optionService = optionService;
this.pageContentProjectionFactory = pageContentProjectionFactory;
this.unitOfWork = unitOfWork;
}
示例7: DefaultPreviewService
public DefaultPreviewService(PageContentProjectionFactory pageContentProjectionFactory, IOptionService optionService, IRepository repository, ISecurityService securityService)
{
this.pageContentProjectionFactory = pageContentProjectionFactory;
this.repository = repository;
this.optionService = optionService;
this.securityService = securityService;
}
示例8: ConnectToWorkspace
protected override void ConnectToWorkspace(Workspace workspace)
{
_optionService = workspace.Services.GetService<IOptionService>();
if (_optionService != null)
{
_optionService.OptionChanged += OnOptionChanged;
}
}
示例9: AmazonListingServiceTests
public AmazonListingServiceTests()
{
_amazonLogService = A.Fake<IAmazonLogService>();
_amazonProductsApiService = A.Fake<IAmazonProductsApiService>();
_productVariantService = A.Fake<IProductVariantService>();
_optionService = A.Fake<IOptionService>();
_amazonListingService = new AmazonListingService(Session,_amazonLogService,_productVariantService,_optionService,_amazonProductsApiService);
}
示例10: DefaultLayoutService
/// <summary>
/// Initializes a new instance of the <see cref="DefaultLayoutService" /> class.
/// </summary>
/// <param name="repository">The repository.</param>
/// <param name="optionService">The option service.</param>
/// <param name="configuration">The configuration.</param>
/// <param name="accessControlService">The access control service.</param>
public DefaultLayoutService(IRepository repository, IOptionService optionService, ICmsConfiguration configuration,
IAccessControlService accessControlService)
{
this.repository = repository;
this.optionService = optionService;
this.configuration = configuration;
this.accessControlService = accessControlService;
}
示例11: HtmlContentService
/// <summary>
/// Initializes a new instance of the <see cref="HtmlContentService" /> class.
/// </summary>
/// <param name="repository">The repository.</param>
/// <param name="unitOfWork">The unit of work.</param>
/// <param name="contentService">The content service.</param>
/// <param name="optionService">The option service.</param>
public HtmlContentService(IRepository repository, IUnitOfWork unitOfWork,
Module.Root.Services.IContentService contentService, IOptionService optionService)
{
this.repository = repository;
this.unitOfWork = unitOfWork;
this.contentService = contentService;
this.optionService = optionService;
}
示例12: HtmlContentWidgetService
public HtmlContentWidgetService(IRepository repository, IHtmlContentWidgetOptionsService optionsService,
ISaveWidgetService widgetService, IOptionService optionService)
{
this.repository = repository;
this.optionsService = optionsService;
this.widgetService = widgetService;
this.optionService = optionService;
}
示例13: ForceLowMemoryMode
public ForceLowMemoryMode(IOptionService optionService)
{
_optionService = optionService;
optionService.OptionChanged += Options_OptionChanged;
RefreshFromSettings();
}
示例14: DesignerAttributeIncrementalAnalyzer
public DesignerAttributeIncrementalAnalyzer(
IServiceProvider serviceProvider,
IOptionService optionService,
IForegroundNotificationService notificationService,
IEnumerable<Lazy<IAsynchronousOperationListener, FeatureMetadata>> asyncListeners) :
base(serviceProvider, optionService, notificationService, asyncListeners)
{
}
开发者ID:SoumikMukherjeeDOTNET,项目名称:roslyn,代码行数:8,代码来源:CSharpDesignerAttributeIncrementalAnalyzerProvider.cs
示例15: FullSolutionAnalysisOptionBinding
public FullSolutionAnalysisOptionBinding(IOptionService optionService, string languageName)
{
_optionService = optionService;
_languageName = languageName;
_fullSolutionAnalysis = RuntimeOptions.FullSolutionAnalysis;
_closedFileDiagnostics = ServiceFeatureOnOffOptions.ClosedFileDiagnostic;
}