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


C# IMessageService类代码示例

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


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

示例1: PhobosInitializationAttribute

 public PhobosInitializationAttribute(IUserManagementService userMngSvc, INavigationService navSvc, INotificationService notificationService, IMessageService msgService)
 {
     this.userManagementService = userMngSvc;
     this.navigationService = navSvc;
     this.notificationService = notificationService;
     this.msgService = msgService;
 }
开发者ID:ptorrezao,项目名称:Phobos,代码行数:7,代码来源:PhobosInitializationAttribute.cs

示例2: PackagesController

 public PackagesController(
     IPackageService packageService,
     IUploadFileService uploadFileService,
     IUserService userService,
     IMessageService messageService,
     ISearchService searchService,
     IAutomaticallyCuratePackageCommand autoCuratedPackageCmd,
     INuGetExeDownloaderService nugetExeDownloaderService,
     IPackageFileService packageFileService,
     IEntitiesContext entitiesContext,
     IAppConfiguration config,
     IIndexingService indexingService,
     ICacheService cacheService)
 {
     _packageService = packageService;
     _uploadFileService = uploadFileService;
     _userService = userService;
     _messageService = messageService;
     _searchService = searchService;
     _autoCuratedPackageCmd = autoCuratedPackageCmd;
     _nugetExeDownloaderService = nugetExeDownloaderService;
     _packageFileService = packageFileService;
     _entitiesContext = entitiesContext;
     _config = config;
     _indexingService = indexingService;
     _cacheService = cacheService;
 }
开发者ID:ryanhartley84332,项目名称:NuGetGallery,代码行数:27,代码来源:PackagesController.cs

示例3: SendMessageRequestHandler

 public SendMessageRequestHandler(BrokerController brokerController)
 {
     _brokerController = brokerController;
     _messageService = ObjectContainer.Resolve<IMessageService>();
     _binarySerializer = ObjectContainer.Resolve<IBinarySerializer>();
     _logger = ObjectContainer.Resolve<ILoggerFactory>().Create(GetType().Name);
 }
开发者ID:kouweizhong,项目名称:equeue,代码行数:7,代码来源:SendMessageRequestHandler.cs

示例4: ShellService

 public ShellService(IWindowHost window,IMessageService messageService,IUnityContainer container,IChildViewService childViewService)
 {
     _messageService = messageService;
     _window = window;
     _container = container;
     _childViewService = childViewService;
 }
开发者ID:paytonli2013,项目名称:SolutionTool,代码行数:7,代码来源:ShellService.cs

示例5: JoinMessageService

 /// <summary>
 /// Initialises a new instance of the <see cref="JoinMessageService"/> class.
 /// </summary>
 /// <param name="ircClient">
 /// The IRC network.
 /// </param>
 /// <param name="logger">
 /// The logger.
 /// </param>
 /// <param name="repository">
 /// The repository.
 /// </param>
 /// <param name="messageService">
 /// The message Service.
 /// </param>
 public JoinMessageService(IIrcClient ircClient, ILogger logger, IWelcomeUserRepository repository, IMessageService messageService)
 {
     this.ircClient = ircClient;
     this.logger = logger;
     this.repository = repository;
     this.messageService = messageService;
 }
开发者ID:Technical-13,项目名称:helpmebot,代码行数:22,代码来源:JoinMessageService.cs

示例6: EventController

 public EventController(ISecurityService securityService, IEventService eventService, IMessageService messageService)
     : base(securityService)
 {
     _securityService = securityService;
     _eventService = eventService;
     _messageService = messageService;
 }
开发者ID:JudasHerb,项目名称:MyCommunity,代码行数:7,代码来源:EventController.cs

示例7: MessageController

 public MessageController(IMessageService iMessageService, IUserInfo iUserInfo, IUnitOfWork unitOfWork, IMessenger iMessenger)
 {
     _iMessageService = iMessageService;
     _iUserInfo = iUserInfo;
     _unitOfWork = unitOfWork;
     _iMessenger = iMessenger;
 }
开发者ID:b9502032,项目名称:MySite,代码行数:7,代码来源:MessageController.cs

示例8: MockNUnitTestFramework

		public MockNUnitTestFramework(IUnitTestDebuggerService debuggerService,
			ITestResultsMonitor testResultsMonitor, 
			UnitTestingOptions options,
			IMessageService messageService)
			: this(debuggerService, null, testResultsMonitor, options, messageService)
		{
		}
开发者ID:hefnerliu,项目名称:SharpDevelop,代码行数:7,代码来源:MockNUnitTestFramework.cs

示例9: EmployeesViewModel

        /// <summary>
        /// Initializes a new instance of the <see cref="EmployeesViewModel"/> class.
        /// </summary>
        public EmployeesViewModel(IMessageMediator messageMediator, IUIVisualizerService uiVisualizerService, IEmployeeRepository employeeRepository,
            IMessageService messageService)
            : base(messageMediator)
        {
            Argument.IsNotNull(() => uiVisualizerService);
            Argument.IsNotNull(() => employeeRepository);
            Argument.IsNotNull(() => messageService);

            _uiVisualizerService = uiVisualizerService;
            _employeeRepository = employeeRepository;
            _messageService = messageService;

            AddEmployee = new Command(OnAddEmployeeExecute);
            EditEmployee = new Command(OnEditEmployeeExecute, OnEditEmployeeCanExecute);
            DeleteEmployee = new Command(OnDeleteEmployeeExecute, OnDeleteEmployeeCanExecute);

            Employees = new FastObservableCollection<IEmployee>();
            if (!ObjectHelper.IsNull(SelectedDepartment))
            {
                Employees.AddRange(EmployeeRepository.GetAllEmployees(SelectedDepartment.Name));
            }

            if (Employees.Count > 0)
            {
                SelectedEmployee = Employees[0];
            }

            Mediator.Register<string>(this, OnSelectedDepartmentUpdated, "UpdateEmployees");
        }
开发者ID:ruisebastiao,项目名称:Catel.Examples,代码行数:32,代码来源:EmployeesViewModel.cs

示例10: AccountController

 public AccountController()
 {
     _userService = IoCFactory.UnityContainer.Resolve<IUserService>();
     _groupService = IoCFactory.UnityContainer.Resolve<IGroupService>();
     _messageService = IoCFactory.UnityContainer.Resolve<IMessageService>();
     _authHelper = IoCFactory.UnityContainer.Resolve<IAuthHelper>();
 }
开发者ID:Deadzone,项目名称:GroupBuy,代码行数:7,代码来源:AccountController.cs

示例11: ChatController

        public ChatController(IUserService userservice, IChatRoomService chatService, IMessageService messageService, IFileService fileService)
        {
            UserService = userservice;
            ChatService = chatService;
            MessageService = messageService;
            FileService = fileService;
            config = new MapperConfiguration(cfg =>
            {
                cfg.CreateMap<User, UserChatViewModel>()
                .ForMember(dest => dest.UserFoto,
                            opt => opt.MapFrom(src => src.UserFoto.
                                                       Insert(src.UserFoto.LastIndexOf('/') + 1,
                                                       "mini/")));
                cfg.CreateMap<ChatRoom, ChatRoomPartialViewModel>();

                cfg.CreateMap<Message, MessageViewModels>()
                .ForMember(dest => dest.UserName, opt => opt.MapFrom(src => src.User.UserName))
                .ForMember(dest => dest.PathFotoUser,
                            opt => opt.MapFrom(src => src.User.UserFoto.
                                                       Insert(src.User.UserFoto.LastIndexOf('/') + 1,
                                                       "mini/")))
                .ForMember(dest => dest.FileId,
                            opt => opt.MapFrom(src => src.File.Id))
                .ForMember(dest => dest.FileName,
                            opt => opt.MapFrom(src => src.File.NameFile));
                cfg.CreateMap<ChatRoom, ChatRoomViewModels>()
                .ForMember(dest => dest.UserName, opt => opt.MapFrom(src => src.User.UserName))
                .ForMember(dest => dest.Users, opt => opt.MapFrom(src => src.Users))
                .ForMember(dest => dest.Messages, opt => opt.MapFrom(src => src.Messages));
            });
        }
开发者ID:ProgiiX,项目名称:Chat_V2,代码行数:31,代码来源:ChatController.cs

示例12: LicenseViewModel

        /// <summary>
        /// Initializes a new instance of the <see cref="LicenseViewModel" /> class.
        /// </summary>
        /// <param name="licenseInfo">The single license model.</param>
        /// <param name="navigationService">The navigation service.</param>
        /// <param name="processService">The process service.</param>
        /// <param name="licenseService">The license service.</param>
        /// <param name="licenseValidationService">The license validation service.</param>
        /// <param name="uiVisualizerService">The uiVisualizer service.</param>
        /// <param name="messageService">The message service.</param>
        /// <exception cref="ArgumentNullException">The <paramref name="licenseInfo" /> is <c>null</c>.</exception>
        /// <exception cref="ArgumentNullException">The <paramref name="navigationService" /> is <c>null</c>.</exception>
        /// <exception cref="ArgumentNullException">The <paramref name="processService" /> is <c>null</c>.</exception>
        /// <exception cref="ArgumentNullException">The <paramref name="licenseService" /> is <c>null</c>.</exception>
        /// <exception cref="ArgumentNullException">The <paramref name="uiVisualizerService" /> is <c>null</c>.</exception>
        public LicenseViewModel(LicenseInfo licenseInfo, INavigationService navigationService, IProcessService processService,
            ILicenseService licenseService, ILicenseValidationService licenseValidationService, IUIVisualizerService uiVisualizerService, 
            IMessageService messageService)
        {
            Argument.IsNotNull(() => licenseInfo);
            Argument.IsNotNull(() => navigationService);
            Argument.IsNotNull(() => processService);
            Argument.IsNotNull(() => licenseService);
            Argument.IsNotNull(() => licenseValidationService);
            Argument.IsNotNull(() => uiVisualizerService);
            Argument.IsNotNull(() => messageService);

            _navigationService = navigationService;
            _processService = processService;
            _licenseService = licenseService;
            _licenseValidationService = licenseValidationService;
            _uiVisualizerService = uiVisualizerService;
            _messageService = messageService;

            LicenseInfo = licenseInfo;
            Title = licenseInfo.Title;

            XmlData = new ObservableCollection<XmlDataModel>();

            Paste = new TaskCommand(OnPasteExecuteAsync);
            ShowClipboard = new Command(OnShowClipboardExecute);
            PurchaseLinkClick = new Command(OnPurchaseLinkClickExecute);
            AboutSiteClick = new Command(OnAboutSiteClickExecute);
            RemoveLicense = new TaskCommand(OnRemoveLicenseExecuteAsync, OnRemoveLicenseCanExecute);
        }
开发者ID:WildGums,项目名称:Orc.LicenseManager,代码行数:45,代码来源:LicenseViewModel.cs

示例13: JsonApiController

 public JsonApiController(IPackageService packageSvc, IUserService userSvc, IEntityRepository<PackageOwnerRequest> packageOwnerRequestRepository, IMessageService messageService)
 {
     this.packageSvc = packageSvc;
     this.userSvc = userSvc;
     this.packageOwnerRequestRepository = packageOwnerRequestRepository;
     this.messageSvc = messageService;
 }
开发者ID:N198,项目名称:NugetGallery21-DeleteMe,代码行数:7,代码来源:JsonApiController.cs

示例14: PackagesController

 public PackagesController(
     IPackageService packageService,
     IUploadFileService uploadFileService,
     IMessageService messageService,
     ISearchService searchService,
     IAutomaticallyCuratePackageCommand autoCuratedPackageCmd,
     IPackageFileService packageFileService,
     IEntitiesContext entitiesContext,
     IAppConfiguration config,
     IIndexingService indexingService,
     ICacheService cacheService,
     EditPackageService editPackageService,
     IPackageDeleteService packageDeleteService,
     ISupportRequestService supportRequestService,
     AuditingService auditingService)
 {
     _packageService = packageService;
     _uploadFileService = uploadFileService;
     _messageService = messageService;
     _searchService = searchService;
     _autoCuratedPackageCmd = autoCuratedPackageCmd;
     _packageFileService = packageFileService;
     _entitiesContext = entitiesContext;
     _config = config;
     _indexingService = indexingService;
     _cacheService = cacheService;
     _editPackageService = editPackageService;
     _packageDeleteService = packageDeleteService;
     _supportRequestService = supportRequestService;
     _auditingService = auditingService;
 }
开发者ID:rhysawilliams2010,项目名称:NuGetGallery,代码行数:31,代码来源:PackagesController.cs

示例15: PostCommand

 public PostCommand(IMessageService messageService, string userName, string text, IDateTimeHelper dateTimeHelper)
 {
     _userName = userName;
     _text = text;
     _dateTimeHelper = dateTimeHelper;
     _messageService = messageService;
 }
开发者ID:SnowFox108,项目名称:Codurance,代码行数:7,代码来源:PostCommand.cs


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