public AgentBotMiddleware( RequestDelegate next, IServiceProvider serviceProvider) : base(serviceProvider) { _next = next; _contextProvider = serviceProvider.GetRequiredService <IAgentContextProvider>(); }
public ConnectionViewModel(IUserDialogs userDialogs, INavigationService navigationService, IAgentContextProvider agentContextProvider, IMessageService messageService, IDiscoveryService discoveryService, IConnectionService connectionService, IEventAggregator eventAggregator, ConnectionRecord record) : base(nameof(ConnectionViewModel), userDialogs, navigationService) { _agentContextProvider = agentContextProvider; _messageService = messageService; _discoveryService = discoveryService; _connectionService = connectionService; _eventAggregator = eventAggregator; _record = record; MyDid = _record.MyDid; TheirDid = _record.TheirDid; ConnectionName = _record.Alias.Name; ConnectionSubtitle = $"{_record.State:G}"; ConnectionImageUrl = _record.Alias.ImageUrl; }
//Constructor public CloudSyncService(IAgentContextProvider agentContextProvider) { _agentContextProvider = agentContextProvider; CloudConfig cc = InitConfig(); if (_isActive) { switch (cc.provider) { case CloudConfig.Provider.WebDav: _syncService = new WebdavSyncService(cc); break; case CloudConfig.Provider.GoogleDrive: //ToDo break; case CloudConfig.Provider.OneDrive: //ToDo break; //... default: break; } } }
public NotifyConnectedDialog(string dialogId, IServiceProvider provider, AgentBotAccessors accessors, string appId) : base(dialogId) { _eventAggregator = provider.GetRequiredService <IEventAggregator>(); _connectionService = provider.GetRequiredService <IConnectionService>(); _agentContextProvider = provider.GetRequiredService <IAgentContextProvider>(); _logger = provider.GetRequiredService <ILogger <NotifyConnectedDialog> >(); _accessors = accessors; AppId = appId; }
public CreateInvitationDialog(string dialogId, IServiceProvider serviceProvider, AgentBotAccessors accessors) : base(dialogId) { _accessors = accessors; _contextProvider = serviceProvider.GetRequiredService <IAgentContextProvider>(); _connectionService = serviceProvider.GetRequiredService <IConnectionService>(); _provisioningService = serviceProvider.GetRequiredService <IProvisioningService>(); _agentOptions = serviceProvider.GetService <IOptions <AgentOptions> >().Value; AddStep(CheckAgentAsync); AddStep(ProvisionAgentAsync); AddStep(CreateInvitationAsync); AddStep(RegisterNotifyAsync); }
public AcceptInvitationDialog(string dialogId, IServiceProvider serviceProvider, AgentBotAccessors accessors) : base(dialogId) { _accessors = accessors; _connectionService = serviceProvider.GetRequiredService <IConnectionService>(); _messageService = serviceProvider.GetRequiredService <IMessageService>(); _contextProvider = serviceProvider.GetRequiredService <IAgentContextProvider>(); AddStep(ParseInvitationAsync); AddStep(ParseFollowUpAsync); AddStep(CheckAgentAsync); AddStep(ProvisionAgentAsync); AddStep(AcceptInvitationAsync); AddStep(RegisterNotifyAsync); }
public AcceptInviteViewModel(IUserDialogs userDialogs, INavigationService navigationService, IProvisioningService provisioningService, IConnectionService connectionService, IMessageService messageService, IAgentContextProvider contextProvider, IEventAggregator eventAggregator) : base("Accept Invitiation", userDialogs, navigationService) { _provisioningService = provisioningService; _connectionService = connectionService; _contextProvider = contextProvider; _messageService = messageService; _contextProvider = contextProvider; _eventAggregator = eventAggregator; }
public ConnectionsController( IEventAggregator eventAggregator, IConnectionService connectionService, IWalletService walletService, IWalletRecordService recordService, IProvisioningService provisioningService, IAgentContextProvider agentContextProvider, IMessageService messageService, IOptions <WalletOptions> walletOptions) { _eventAggregator = eventAggregator; _connectionService = connectionService; _walletService = walletService; _recordService = recordService; _provisioningService = provisioningService; _agentContextProvider = agentContextProvider; _messageService = messageService; _walletOptions = walletOptions.Value; }