当前位置: 首页>>代码示例>>C#>>正文


C# IOptionService类代码示例

本文整理汇总了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());
           
        }
开发者ID:Hitchhikrr,项目名称:WP7-RMM-Project,代码行数:30,代码来源:MainViewModel.cs

示例2: AccountController

 public AccountController(ApplicationUserManager userManager, IOrderService orderService,
     IOptionService optionService)
 {
     this.orderService = orderService;
     this.optionService = optionService;
     UserManager = userManager;
 }
开发者ID:alin-rautoiu,项目名称:Cart42,代码行数:7,代码来源:AccountController.cs

示例3: PagePropertiesService

 public PagePropertiesService(IRepository repository, IUrlService urlService, IOptionService optionService, IMediaFileUrlResolver fileUrlResolver)
 {
     this.repository = repository;
     this.urlService = urlService;
     this.optionService = optionService;
     this.fileUrlResolver = fileUrlResolver;
 }
开发者ID:JMFURY,项目名称:BetterCMS,代码行数:7,代码来源:PagePropertiesService.cs

示例4: DefaultContentService

 public DefaultContentService(ISecurityService securityService, IRepository repository, IUnitOfWork unitOfWork, IOptionService optionService)
 {
     this.unitOfWork = unitOfWork;
     this.securityService = securityService;
     this.repository = repository;
     this.optionService = optionService;
 }
开发者ID:navid60,项目名称:BetterCMS,代码行数:7,代码来源:DefaultContentService.cs

示例5: OptionCategoryController

 public OptionCategoryController(IOptionCategoryService optionCategoryService, IOptionService optionService,
     ISettingService settingService)
 {
     this.optionCategoryService = optionCategoryService;
     this.optionService = optionService;
     this.settingService = settingService;
 }
开发者ID:alin-rautoiu,项目名称:Cart42,代码行数:7,代码来源:OptionCategoryController.cs

示例6: DefaultContentProjectionService

 public DefaultContentProjectionService(PageContentProjectionFactory pageContentProjectionFactory,
     IOptionService optionService, IUnitOfWork unitOfWork)
 {
     this.optionService = optionService;
     this.pageContentProjectionFactory = pageContentProjectionFactory;
     this.unitOfWork = unitOfWork;
 }
开发者ID:vivekmalikymca,项目名称:BetterCMS,代码行数:7,代码来源:DefaultContentProjectionService.cs

示例7: DefaultPreviewService

 public DefaultPreviewService(PageContentProjectionFactory pageContentProjectionFactory, IOptionService optionService, IRepository repository, ISecurityService securityService)
 {
     this.pageContentProjectionFactory = pageContentProjectionFactory;
     this.repository = repository;
     this.optionService = optionService;
     this.securityService = securityService;
 }
开发者ID:rajeshpillai,项目名称:BetterCMS,代码行数:7,代码来源:DefaultPreviewService.cs

示例8: ConnectToWorkspace

 protected override void ConnectToWorkspace(Workspace workspace)
 {
     _optionService = workspace.Services.GetService<IOptionService>();
     if (_optionService != null)
     {
         _optionService.OptionChanged += OnOptionChanged;
     }
 }
开发者ID:noahstein,项目名称:roslyn,代码行数:8,代码来源:TaggerEventSources.OptionChangedEventSource.cs

示例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);
 }
开发者ID:neozhu,项目名称:Ecommerce,代码行数:8,代码来源:AmazonListingServiceTests.cs

示例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;
 }
开发者ID:JMFURY,项目名称:BetterCMS,代码行数:15,代码来源:DefaultLayoutService.cs

示例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;
 }
开发者ID:vivekmalikymca,项目名称:BetterCMS,代码行数:15,代码来源:HtmlContentService.cs

示例12: HtmlContentWidgetService

 public HtmlContentWidgetService(IRepository repository, IHtmlContentWidgetOptionsService optionsService,
     ISaveWidgetService widgetService, IOptionService optionService)
 {
     this.repository = repository;
     this.optionsService = optionsService;
     this.widgetService = widgetService;
     this.optionService = optionService;
 }
开发者ID:Steinerd,项目名称:BetterCMS,代码行数:8,代码来源:HtmlContentWidgetService.cs

示例13: ForceLowMemoryMode

        public ForceLowMemoryMode(IOptionService optionService)
        {
            _optionService = optionService;

            optionService.OptionChanged += Options_OptionChanged;

            RefreshFromSettings();
        }
开发者ID:XieShuquan,项目名称:roslyn,代码行数:8,代码来源:ForceLowMemoryMode.cs

示例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;
        }
开发者ID:Rickinio,项目名称:roslyn,代码行数:8,代码来源:FullSolutionAnalysisOptionBinding.cs


注:本文中的IOptionService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。