本文整理汇总了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;
}
示例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;
}
示例3: SendMessageRequestHandler
public SendMessageRequestHandler(BrokerController brokerController)
{
_brokerController = brokerController;
_messageService = ObjectContainer.Resolve<IMessageService>();
_binarySerializer = ObjectContainer.Resolve<IBinarySerializer>();
_logger = ObjectContainer.Resolve<ILoggerFactory>().Create(GetType().Name);
}
示例4: ShellService
public ShellService(IWindowHost window,IMessageService messageService,IUnityContainer container,IChildViewService childViewService)
{
_messageService = messageService;
_window = window;
_container = container;
_childViewService = childViewService;
}
示例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;
}
示例6: EventController
public EventController(ISecurityService securityService, IEventService eventService, IMessageService messageService)
: base(securityService)
{
_securityService = securityService;
_eventService = eventService;
_messageService = messageService;
}
示例7: MessageController
public MessageController(IMessageService iMessageService, IUserInfo iUserInfo, IUnitOfWork unitOfWork, IMessenger iMessenger)
{
_iMessageService = iMessageService;
_iUserInfo = iUserInfo;
_unitOfWork = unitOfWork;
_iMessenger = iMessenger;
}
示例8: MockNUnitTestFramework
public MockNUnitTestFramework(IUnitTestDebuggerService debuggerService,
ITestResultsMonitor testResultsMonitor,
UnitTestingOptions options,
IMessageService messageService)
: this(debuggerService, null, testResultsMonitor, options, messageService)
{
}
示例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");
}
示例10: AccountController
public AccountController()
{
_userService = IoCFactory.UnityContainer.Resolve<IUserService>();
_groupService = IoCFactory.UnityContainer.Resolve<IGroupService>();
_messageService = IoCFactory.UnityContainer.Resolve<IMessageService>();
_authHelper = IoCFactory.UnityContainer.Resolve<IAuthHelper>();
}
示例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));
});
}
示例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);
}
示例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;
}
示例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;
}
示例15: PostCommand
public PostCommand(IMessageService messageService, string userName, string text, IDateTimeHelper dateTimeHelper)
{
_userName = userName;
_text = text;
_dateTimeHelper = dateTimeHelper;
_messageService = messageService;
}