• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IMessageBroker类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IMessageBroker的典型用法代码示例。如果您正苦于以下问题:C# IMessageBroker类的具体用法?C# IMessageBroker怎么用?C# IMessageBroker使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IMessageBroker类属于命名空间,在下文中一共展示了IMessageBroker类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: NewMasterDataCommand

        protected NewMasterDataCommand(IMessageBroker messageBroker, IClientContext clientContext)
        {
            Text = () => LanguageData.General_New ;

            this.messageBroker = messageBroker;
            this.clientContext = clientContext;
        }
开发者ID:antonmaju,项目名称:egg-farm-system,代码行数:7,代码来源:NewMasterDataCommand.cs


示例2: NewHouseCommand

        public NewHouseCommand(IClientContext clientContext, IMessageBroker messageBroker)
        {
            Text = () => LanguageData.General_New;

            this.messageBroker = messageBroker;
            this.clientContext = clientContext;
        }
开发者ID:antonmaju,项目名称:egg-farm-system,代码行数:7,代码来源:NewHouseCommand.cs


示例3: EmployeeCostEntryViewModel

        public EmployeeCostEntryViewModel(
            IMessageBroker messageBroker, 
            IEmployeeCostService costService,
            IEmployeeService employeeService,
            SaveEmployeeCostCommand saveCostCommand,
            CancelCommand cancelCommand, ShowEmployeeCostCommand showListCommand
            )
        {
            this.messageBroker = messageBroker;
            this.costService = costService;
            this.employeeService = employeeService;
            ActualSaveCommand = saveCostCommand;

            CancelCommand = cancelCommand;
            ShowCostListCommand = showListCommand;
            InitializeCommands();
            NavigationCommands = new List<CommandBase>{SaveCommand,CancelCommand};
            CancelCommand.Action = broker => showListCommand.Execute(null);

            PropertiesToValidate = new List<string>()
            {
                "Date",
                "Total",
                "Details"
            };

            Employees = new ObservableCollection<Employee>(employeeService.GetAll());

            SubscribeMessages();
        }
开发者ID:antonmaju,项目名称:egg-farm-system,代码行数:30,代码来源:EmployeeCostEntryViewModel.cs


示例4: SaveHenDepreciationCommand

        public SaveHenDepreciationCommand(IMessageBroker broker, IHenDepreciationService service)
        {
            Text = () => LanguageData.General_Save;

            this.broker = broker;
            this.service = service;
        }
开发者ID:antonmaju,项目名称:egg-farm-system,代码行数:7,代码来源:SaveHenDepreciationCommand.cs


示例5: SaveUsageCommand

        public SaveUsageCommand(IMessageBroker messageBroker, IConsumableUsageService usageService)
        {
            Text = () => LanguageData.General_Save;

            this.messageBroker = messageBroker;
            this.usageService = usageService;
        }
开发者ID:antonmaju,项目名称:egg-farm-system,代码行数:7,代码来源:SaveUsageCommand.cs


示例6: DeleteEggProductionCommand

        public DeleteEggProductionCommand(IMessageBroker messageBroker, IEggProductionService costService)
        {
            Text = () => LanguageData.General_Delete;

            this.broker = messageBroker;
            this.service = costService;
        }
开发者ID:antonmaju,项目名称:egg-farm-system,代码行数:7,代码来源:DeleteEggProductionCommand.cs


示例7: MasterDataViewModel

        public MasterDataViewModel(
            IMessageBroker messageBroker,
            Lazy<IHenListView> henListProxy,
            Lazy<IHenHouseListView> houseListProxy,
            Lazy<IEmployeeListView> employeeListProxy,
            Lazy<IConsumableListView> consumableListProxy,
            Lazy<IAdditionalCostListView> additionalCostListProxy,

            Lazy<IHenEntryView> henEntryProxy,
            Lazy<IHenHouseEntryView>  houseEntryProxy,
            Lazy<IEmployeeEntryView> employeeEntryProxy,
            Lazy<IConsumableEntryView> consumableEntryProxy,
            Lazy<IAdditionalCostEntryView> additionalCostEntryProxy 
            )
        {
            this.messageBroker = messageBroker;
            this.henListProxy = henListProxy;
            this.houseListProxy = houseListProxy;
            this.employeeListProxy = employeeListProxy;
            this.consumableListProxy = consumableListProxy;
            this.additionalCostListProxy = additionalCostListProxy;

            this.henEntryProxy = henEntryProxy;
            this.houseEntryProxy = houseEntryProxy;
            this.employeeEntryProxy = employeeEntryProxy;
            this.consumableEntryProxy = consumableEntryProxy;
            this.additionalCostEntryProxy = additionalCostEntryProxy;

            InitializeCommand();
            SetMessageListeners();
        }
开发者ID:antonmaju,项目名称:egg-farm-system,代码行数:31,代码来源:MasterDataViewModel.cs


示例8: GlimpseTraceWriter

 public GlimpseTraceWriter(IMessageBroker messageBroker, Func<IExecutionTimer> timerStrategy, ITraceWriter innerTraceWriter)
 {
   _messageBroker = messageBroker;
   _timerStrategy = timerStrategy;
   _innerTraceWriter = innerTraceWriter;
   _traceMessages = new List<JsonTraceMessage>();
 }
开发者ID:modulexcite,项目名称:Newtonsoft.Json.Glimpse,代码行数:7,代码来源:GlimpseTraceWriter.cs


示例9: InspectorContext

        /// <summary>
        /// Initializes a new instance of the <see cref="InspectorContext" /> class.
        /// </summary>
        /// <param name="logger">The logger.</param>
        /// <param name="proxyFactory">The proxy factory.</param>
        /// <param name="messageBroker">The message broker.</param>
        /// <param name="timerStrategy">The timer strategy.</param>
        /// <param name="runtimePolicyStrategy">The runtime policy strategy.</param>
        /// <exception cref="System.ArgumentNullException">Throws an exception if any parameter if <c>null</c>.</exception>
        public InspectorContext(ILogger logger, IProxyFactory proxyFactory, IMessageBroker messageBroker, Func<IExecutionTimer> timerStrategy, Func<RuntimePolicy> runtimePolicyStrategy)
        {
            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }

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

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

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

            if (runtimePolicyStrategy == null)
            {
                throw new ArgumentNullException("runtimePolicyStrategy");
            }
            
            Logger = logger;
            ProxyFactory = proxyFactory;
            TimerStrategy = timerStrategy;
            MessageBroker = messageBroker;
            RuntimePolicyStrategy = runtimePolicyStrategy;
        }
开发者ID:GProulx,项目名称:Glimpse,代码行数:42,代码来源:InspectorContext.cs


示例10: UsageEntryViewModel

        public UsageEntryViewModel(IMessageBroker messageBroker, IConsumableUsageService usageService,
            IHenHouseService houseService, IConsumableService consumableService,
            SaveUsageCommand saveUsageCommand, CancelCommand cancelCommand, ShowUsageCommand showListCommand
            )
        {
            this.messageBroker = messageBroker;
            this.usageService = usageService;
            this.houseService = houseService;
            this.consumableService = consumableService;

            this.saveUsageCommand = saveUsageCommand;
            this.showListCommand = showListCommand;

            CancelCommand = cancelCommand;

            PropertiesToValidate = new List<string>()
            {
                "Date",
                "Total",
                "Details"
            };

            InitializeCommands();

            HouseList = new ObservableCollection<HenHouse>(houseService.GetAll());
            ConsumableList = new ObservableCollection<Consumable>(consumableService.GetAll());

            SubscribeMessages();
        }
开发者ID:antonmaju,项目名称:egg-farm-system,代码行数:29,代码来源:UsageEntryViewModel.cs


示例11: SaveEmployeeCostCommand

        public SaveEmployeeCostCommand(IMessageBroker broker, IEmployeeCostService costService)
        {
            Text = () => LanguageData.General_Save;

            this.broker = broker;
            this.costService = costService;
        }
开发者ID:antonmaju,项目名称:egg-farm-system,代码行数:7,代码来源:SaveEmployeeCostCommand.cs


示例12: DeleteEmployeeCostCommand

        public DeleteEmployeeCostCommand(IMessageBroker messageBroker, IEmployeeCostService costService)
        {
            Text = () => LanguageData.General_Delete;

            this.broker = messageBroker;
            this.costService = costService;
        }
开发者ID:antonmaju,项目名称:egg-farm-system,代码行数:7,代码来源:DeleteEmployeeCostCommand.cs


示例13: DeleteHenDepreciationCommand

        public DeleteHenDepreciationCommand(IMessageBroker broker, IHenDepreciationService depreciationService)
        {
            Text = () => LanguageData.General_Delete;

            this.broker = broker;
            this.service = depreciationService;
        }
开发者ID:antonmaju,项目名称:egg-farm-system,代码行数:7,代码来源:DeleteHenDepreciationCommand.cs


示例14: HenDepreciationEntryViewModel

        public HenDepreciationEntryViewModel(IMessageBroker messageBroker, IHenDepreciationService service, IHenHouseService houseService,
            SaveHenDepreciationCommand saveCommand, CancelCommand cancelCommand, ShowHenDepreciationListCommand showListCommand)
        {
            this.broker = messageBroker;
            this.service = service;

            ActualSaveCommand = saveCommand;

            CancelCommand = cancelCommand;
            CancelCommand.Action = b => showListCommand.Execute(null);

            RefreshCommand = new DelegateCommand(p => OnRefresh(),p => true) {Text = () => LanguageData.General_Refresh};

            ShowListCommand = showListCommand;

            HenHouses = new ObservableCollection<HenHouse>(houseService.GetAll().OrderBy(h => h.Name));

            InitializeCommands();

            PropertiesToValidate = new List<string>
            {
                "Date",
                "Details"
            };

            NavigationCommands = new List<CommandBase>(){SaveCommand, CancelCommand, RefreshCommand};

            SubscribeMessages();
        }
开发者ID:antonmaju,项目名称:egg-farm-system,代码行数:29,代码来源:HenDepreciationEntryViewModel.cs


示例15: ApplicationContext

 internal ApplicationContext(IImportPool importPool, IMessageBroker messageBroker, IServicePool servicePool, IDataBroker dataBroker, IVisualModuleManager visualModuleManager)
 {
     VisualModuleManager = visualModuleManager;
     DataBroker = dataBroker;
     ServicePool = servicePool;
     MessageBroker = messageBroker;
     ImportPool = importPool;
 }
开发者ID:JPVenson,项目名称:Shell_Temp,代码行数:8,代码来源:ApplicationContext.cs


示例16: ReportListView

        public ReportListView(ReportListViewModel model, IMessageBroker broker)
        {
            InitializeComponent();
            this.DataContext = model;
            this.model = model;
            this.broker = broker;

            SetEventHandlers();
        }
开发者ID:antonmaju,项目名称:egg-farm-system,代码行数:9,代码来源:ReportListView.xaml.cs


示例17: Invoke

 public override INakedObjectAdapter Invoke(INakedObjectAdapter nakedObjectAdapter, INakedObjectAdapter[] parameters, int resultPage, ILifecycleManager lifecycleManager, IMetamodelManager manager, ISession session, INakedObjectManager nakedObjectManager, IMessageBroker messageBroker, ITransactionManager transactionManager) {
     profileManager.Begin(session, ProfileEvent.ActionInvocation, identifier.MemberName, nakedObjectAdapter, lifecycleManager);
     try {
         return underlyingFacet.Invoke(nakedObjectAdapter, parameters, resultPage, lifecycleManager, manager, session, nakedObjectManager, messageBroker, transactionManager);
     }
     finally {
         profileManager.End(session, ProfileEvent.ActionInvocation, identifier.MemberName, nakedObjectAdapter, lifecycleManager);
     }
 }
开发者ID:NakedObjectsGroup,项目名称:NakedObjectsFramework,代码行数:9,代码来源:ProfileActionInvocationFacet.cs


示例18: NotificationsRegistry

 public NotificationsRegistry(IDocumentStore store,IMessageBroker broker,IEnumerable <IDocumentStore> orgStores)
 {
     Schedule(() => new NotificationProcessor(new EmailNotificationDispatcher(broker),
                                              new ToastDispatcher(store),
                                              orgStores
                        ).Process()).ToRunEvery(30).Seconds();
     
     
     
 }
开发者ID:andyevans2000,项目名称:Illuminate,代码行数:10,代码来源:NotificationsRegistry.cs


示例19: Initialize

    internal static void Initialize(Func<RuntimePolicy> runtimePolicyStrategy, Func<IExecutionTimer> timerStrategy, IMessageBroker messageBroker)
    {
      JsonSerializerSettingsFactory settingsFactory = new JsonSerializerSettingsFactory(
        JsonConvert.DefaultSettings,
        runtimePolicyStrategy,
        timerStrategy,
        messageBroker);

      JsonConvert.DefaultSettings = settingsFactory.GetDefaultSerializerSettings;
    }
开发者ID:modulexcite,项目名称:Newtonsoft.Json.Glimpse,代码行数:10,代码来源:GlimpseJson.cs


示例20: TestObjectFactory

 public TestObjectFactory(IMetamodelManager metamodelManager, ISession session, ILifecycleManager lifecycleManager, IObjectPersistor persistor, INakedObjectManager manager, ITransactionManager transactionManager, IServicesManager servicesManager, IMessageBroker messageBroker) {
     this.metamodelManager = metamodelManager;
     Session = session;
     this.lifecycleManager = lifecycleManager;
     this.persistor = persistor;
     this.manager = manager;
     this.transactionManager = transactionManager;
     this.servicesManager = servicesManager;
     this.messageBroker = messageBroker;
 }
开发者ID:Robin--,项目名称:NakedObjectsFramework,代码行数:10,代码来源:TestObjectFactory.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IMessageBus类代码示例发布时间:2022-05-24
下一篇:
C# IMessageBoxService类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap