Esempio n. 1
0
 public EmailViewModel(ISignatureService signatureService, IRegionManager regionManager, ILoaderService loaderService)
 {
     this.signatureService = signatureService;
     this.regionManager    = regionManager;
     this.loaderService    = loaderService;
     this.RenderCommand    = new DelegateCommand <string>(this.RenderClicked, this.CanRender).ObservesProperty(() => this.SelectedSignature);
 }
Esempio n. 2
0
 public HotWalletService(IBaseSettings baseSettings,
                         IQueueFactory queueFactory,
                         IHotWalletOperationRepository hotWalletCashoutRepository,
                         IPrivateWalletService privateWalletService,
                         IErc20PrivateWalletService erc20PrivateWalletService,
                         ISignatureService signatureService,
                         ILog log,
                         Web3 web3,
                         IHotWalletTransactionRepository hotWalletCashoutTransactionRepository,
                         [KeyFilter(Constants.DefaultKey)] IErc20DepositContractService erc20DepositContractService,
                         AppSettings settingsWrapper,
                         IUserTransferWalletRepository userTransferWalletRepository,
                         IGasPriceRepository gasPriceRepository)
 {
     _hotWalletTransactionMonitoringQueue = queueFactory.Build(Constants.HotWalletTransactionMonitoringQueue);
     _hotWalletCashoutQueue      = queueFactory.Build(Constants.HotWalletCashoutQueue);
     _baseSettings               = baseSettings;//.HotWalletAddress
     _hotWalletCashoutRepository = hotWalletCashoutRepository;
     _privateWalletService       = privateWalletService;
     _erc20PrivateWalletService  = erc20PrivateWalletService;
     _log  = log;
     _web3 = web3;
     _hotWalletCashoutTransactionRepository = hotWalletCashoutTransactionRepository;
     _signatureService             = signatureService;
     _erc20DepositContractService  = erc20DepositContractService;
     _settingsWrapper              = settingsWrapper;
     _userTransferWalletRepository = userTransferWalletRepository;
     _semaphores         = new ConcurrentDictionary <string, SemaphoreSlim>();
     _gasPriceRepository = gasPriceRepository;
 }
        public SignatureImageViewModel()
        {
            _sigService = DependencyService.Get<ISignatureService> ();

            SignatureCommand = new Command(async (obj) => {
                Debug.WriteLine("Signature pad requested...");
                var result = await _sigService.Request(new SignaturePadConfiguration() {
                    StrokeColor = Color.Blue,
                    StrokeWidth = Device.OnPlatform<int>(2, 4, 4),
                    ClearTextColor = Color.Red,
                    PromptTextColor = Color.Red,
                    SignatureLineColor = Color.Red,
                    CaptionText = "Rotate for larger signing area",
                    CaptionTextColor = Color.Black
                });

                if (result.Cancelled)
                    await UserDialogs.Instance.AlertAsync("Signature Cancelled");
                else {
                    using (var sigStream = result.GetStream())
                    {
                        sigStream.Position = 0;
                        var ms = new MemoryStream();
                        sigStream.CopyTo(ms);
                        byte[] sigBytes = ms.ToArray();
                        SignatureImage = sigBytes;
                    }
                }
            });
        }
Esempio n. 4
0
 public EuGatewayService(ITemporaryExposureKeyRepository tempKeyRepository,
                         ISignatureService signatureService,
                         IEncodingService encodingService,
                         IKeyFilter keyFilter,
                         IGatewayWebContextReader gatewayWebContextReader,
                         IMapper mapper,
                         ILogger <EuGatewayService> logger,
                         EuGatewayConfig euGatewayConfig,
                         ISettingsService settingsService,
                         IEpochConverter epochConverter,
                         IGatewayHttpClient gatewayHttpClient,
                         IEFGSKeyStoreService storeService
                         )
 {
     _signatureService  = signatureService;
     _tempKeyRepository = tempKeyRepository;
     _encodingService   = encodingService;
     _keyFilter         = keyFilter;
     _webContextReader  = gatewayWebContextReader;
     _mapper            = mapper;
     _logger            = logger;
     _euGatewayConfig   = euGatewayConfig;
     _settingsService   = settingsService;
     _epochConverter    = epochConverter;
     _gatewayHttpClient = gatewayHttpClient;
     _storeService      = storeService;
 }
Esempio n. 5
0
 public UserService(IUserQueryRepository queryRepository, IUserCommandRepository commandRepository,
                    ISignatureService signatureService) : base(queryRepository, commandRepository)
 {
     _queryRepository   = queryRepository;
     _commandRepository = commandRepository;
     _signatureService  = signatureService;
 }
Esempio n. 6
0
        public SignaturePadConfigViewModel(ISignatureService signatureService)
        {
            this.signatureService = signatureService;
            this.Colors           = typeof(Color)
                                    .GetTypeInfo()
                                    .DeclaredFields
                                    .Select(x => new ColorDefinition {
                Name  = x.Name,
                Color = (Color)x.GetValue(null)
            })
                                    .ToList();

            var cfg = this.signatureService.DefaultConfiguration;

            this.saveText    = cfg.SaveText;
            this.cancelText  = cfg.CancelText;
            this.promptText  = cfg.PromptText;
            this.captionText = cfg.CaptionText;

            //this.bgColor = this.GetColorDefinition(cfg.BackgroundColor);
            //this.promptTextColor = this.GetColorDefinition(cfg.PromptTextColor);
            //this.captionTextColor = this.GetColorDefinition(cfg.CaptionTextColor);
            //this.signatureLineColor = this.GetColorDefinition(cfg.SignatureLineColor);
            //this.strokeColor = this.GetColorDefinition(cfg.StrokeColor);
        }
        public SignatureServiceClient()
        {
            StartShowCaseSigProcess(false);

            _channel = new ChannelFactory <ISignatureService>(new ServiceEndpoint(ContractDescription.GetContract(typeof(ISignatureService)), _binding, _add));
            _proxy   = _channel.CreateChannel();
        }
Esempio n. 8
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="signatureService"></param>
 /// <param name="policyManager"></param>
 public SignatureManager(
     ISignatureService signatureService,
     IPolicyManager policyManager)
 {
     _signatureService = signatureService;
     _policyManager    = policyManager;
 }
        private EuGatewayService CreateGatewayService(
            TemporaryExposureKeyRepository keysRepository,
            ISignatureService signatureService,
            IMapper autoMapper,
            IGatewayHttpClient gateWayHttpClient,
            IKeyFilter keyFilter,
            IGatewayWebContextReader webContextReader,
            IEFGSKeyStoreService storeService,
            ILogger <EuGatewayService> logger,
            EuGatewayConfig config)
        {
            var encodingService = new EncodingService();
            var epochConverter  = new EpochConverter();

            var gatewaySyncStateSettingsDao = new GatewaySyncStateSettingsDao(new SettingRepository(_dbContext));
            var settingsService             = new SettingsService(gatewaySyncStateSettingsDao);

            return(new EuGatewayService(
                       keysRepository,
                       signatureService,
                       encodingService,
                       keyFilter,
                       webContextReader,
                       autoMapper,
                       logger,
                       config,
                       settingsService,
                       epochConverter,
                       gateWayHttpClient,
                       storeService));
        }
        public RemoteContentService()
        {
            var registration = Bootstrap.Container.Resolve <IScsRegistrationService>();

            _ss = Bootstrap.Container.Resolve <ISignatureService>(registration.GetScsRegistration <ContentMigrationRegistration>().AuthenticationSecret);
            _jsonSerializationService = Bootstrap.Container.Resolve <IJsonSerializationService>();
        }
Esempio n. 11
0
 public ExchangeConferenceRoomService(IMeetingRepository meetingRepository,
                                      ISecurityRepository securityRepository,
                                      IBroadcastService broadcastService,
                                      IDateTimeService dateTimeService,
                                      IMeetingCacheService meetingCacheService,
                                      IChangeNotificationService changeNotificationService,
                                      IExchangeServiceManager exchangeServiceManager,
                                      ISimpleTimedCache simpleTimedCache,
                                      IInstantMessagingService instantMessagingService,
                                      ISmsMessagingService smsMessagingService,
                                      ISmsAddressLookupService smsAddressLookupService,
                                      ISignatureService signatureService,
                                      IRoomRepository roomRepository)
 {
     _meetingRepository         = meetingRepository;
     _securityRepository        = securityRepository;
     _broadcastService          = broadcastService;
     _dateTimeService           = dateTimeService;
     _meetingCacheService       = meetingCacheService;
     _changeNotificationService = changeNotificationService;
     _exchangeServiceManager    = exchangeServiceManager;
     _simpleTimedCache          = simpleTimedCache;
     _instantMessagingService   = instantMessagingService;
     _smsMessagingService       = smsMessagingService;
     _smsAddressLookupService   = smsAddressLookupService;
     _signatureService          = signatureService;
     _roomRepository            = roomRepository;
     _ignoreFree             = bool.Parse(ConfigurationManager.AppSettings["ignoreFree"] ?? "false");
     _useChangeNotification  = bool.Parse(ConfigurationManager.AppSettings["useChangeNotification"] ?? "true");
     _impersonateForAllCalls = bool.Parse(ConfigurationManager.AppSettings["impersonateForAllCalls"] ?? "true");
     _emailDomains           = (ConfigurationManager.AppSettings["emailDomains"] ?? "")
                               .Split(';')
                               .Select(_ => _.StartsWith("@") ? _.ToLowerInvariant() : "@" + _.ToLowerInvariant())
                               .ToArray();
 }
 public CustomizedSearchService(ISearchService searchService,
                                ISignatureService signatureService,
                                ITrieSearchService trieSearchService)
 {
     this.searchService     = searchService;
     this.signatureService  = signatureService;
     this.trieSearchService = trieSearchService;
 }
Esempio n. 13
0
 public LoadController(IArticleWriteRepository articleWriteRepository,
                       ISignatureService signatureService,
                       ISearchService searchService)
 {
     this.searchService          = searchService;
     this.articleWriteRepository = articleWriteRepository;
     this.signatureService       = signatureService;
 }
Esempio n. 14
0
 public LoginManager()
 {
     _sessionService        = new SessionService();
     _userManagementService = new UserManagementService();
     _signatureService      = new SignatureService();
     _claimService          = new ClaimService();
     _loggerService         = new LoggerService();
 }
		public SignatureListViewModel(ISignatureService signatureService, IUserDialogService dialogs, IFileSystem fileSystem) {
			this.signatureService = signatureService;
			this.dialogs = dialogs;
			this.fileSystem = fileSystem;

			this.Create = new Command(async () => await this.OnCreate());
			this.List = new ObservableList<Signature>();
		}
Esempio n. 16
0
 private IDistributedCache distributedCache;//内存缓存
 public EPassService(IDistributedIdGenerator idGenerator,
                     ISignatureService signatureService,
                     IDistributedCache distributedCache)
 {
     this.idGenerator      = idGenerator;
     this.distributedCache = distributedCache;
     this.signatureService = signatureService;
 }
Esempio n. 17
0
        public SignatureListViewModel(ISignatureService signatureService, IUserDialogService dialogs, IFileSystem fileSystem)
        {
            this.signatureService = signatureService;
            this.dialogs          = dialogs;
            this.fileSystem       = fileSystem;

            this.Create = new Command(async() => await this.OnCreate());
            this.List   = new ObservableList <Signature>();
        }
        public SignatureListViewModel() {
            signatureService = DependencyService.Get<ISignatureService>();
            this.Create = new Xamarin.Forms.Command(async () => await this.OnCreate());
			this.List = new ObservableCollection<Signature>();
            MessagingCenter.Subscribe<SignatureListView>(this, "Appearing", ((SignatureListView) =>
            {
                OnAppearing();
            }));
		}
Esempio n. 19
0
 public SignatureListViewModel(ISignatureService signatureService)
 {
     this.signatureService = signatureService;
     //this.Configure = new Command(() => this.ShowViewModel<SignaturePadConfigViewModel>());
     this.Create = new Command(this.OnCreate);
     this.Delete = new Command <Signature>(this.OnDelete);
     this.View   = new Command <Signature>(this.OnView);
     this.List   = new ObservableCollection <Signature>();
 }
 public SignatureListViewModel(ISignatureService signatureService)
 {
     this.signatureService = signatureService;
     //this.Configure = new Command(() => this.ShowViewModel<SignaturePadConfigViewModel>());
     this.Create = new Command(this.OnCreate);
     this.Delete = new Command<Signature>(this.OnDelete);
     this.View = new Command<Signature>(this.OnView);
     this.List = new ObservableCollection<Signature>();
 }
Esempio n. 21
0
        public PusherService(IOptionsService optionsService, ISignatureService signatureService)
        {
            _pusherOption     = optionsService.PusherOptions;
            _apiOtion         = optionsService.ApiOptions;
            _signatureService = signatureService;

            MessagesInit();
            StartPusher();
        }
        public SignatureListViewModel(ISignatureService signatureService, IUserDialogService dialogs, IFileSystem fileSystem, IFileViewer fileViewer) {
            this.signatureService = signatureService;
            this.dialogs = dialogs;
            this.fileSystem = fileSystem;
            this.fileViewer = fileViewer;

            this.Configure = new Command(() => App.NavigateTo<SignaturePadConfigViewModel>());
            this.Create = new Command(this.OnCreate);
            this.List = new ObservableList<Signature>();
        }
 public SignatureListViewModel()
 {
     signatureService = DependencyService.Get <ISignatureService>();
     this.Create      = new Xamarin.Forms.Command(async() => await this.OnCreate());
     this.List        = new ObservableCollection <Signature>();
     MessagingCenter.Subscribe <SignatureListView>(this, "Appearing", ((SignatureListView) =>
     {
         OnAppearing();
     }));
 }
Esempio n. 24
0
 public SolarSystemController(ISolarSystemService solarSystemService,
                              ICharacterService characterService,
                              IMapper mapper,
                              ISignatureService signatureService)
 {
     _solarSystemService = solarSystemService;
     _characterService   = characterService;
     _mapper             = mapper;
     _signatureService   = signatureService;
 }
        public SignaturePadConfigViewModel(ISignatureService signatureService, IUserDialogService dialogs) {
            this.signatureService = signatureService;
            this.dialogs = dialogs;

            var cfg = this.signatureService.Configuration;
            this.saveText = cfg.SaveText;
            this.cancelText = cfg.CancelText;
            this.promptText = cfg.PromptText;
            this.captionText = cfg.CaptionText;
        }
        public SignatureListViewModel(ISignatureService signatureService, IFileViewer fileViewer) {
            this.signatureService = signatureService;
            this.fileViewer = fileViewer;

            this.Configure = new Command(() => App.NavigateTo<SignaturePadConfigViewModel>());
            this.Create = new Command(this.OnCreate);
            this.Delete = new Command<Signature>(x => this.OnDelete(x));
            this.View = new Command<Signature>(this.OnView);
            this.List = new ObservableCollection<Signature>();
        }
Esempio n. 27
0
        public SignatureListViewModel(ISignatureService signatureService, IFileViewer fileViewer)
        {
            this.signatureService = signatureService;
            this.fileViewer       = fileViewer;

            this.Configure = new Command(() => App.NavigateTo <SignaturePadConfigViewModel>());
            this.Create    = new Command(this.OnCreate);
            this.Delete    = new Command <Signature>(x => this.OnDelete(x));
            this.View      = new Command <Signature>(this.OnView);
            this.List      = new ObservableCollection <Signature>();
        }
        public SignatureListViewModel(ISignatureService signatureService, IUserDialogService dialogs, IFileSystem fileSystem, IFileViewer fileViewer)
        {
            this.signatureService = signatureService;
            this.dialogs          = dialogs;
            this.fileSystem       = fileSystem;
            this.fileViewer       = fileViewer;

            this.Configure = new Command(() => App.NavigateTo <SignaturePadConfigViewModel>());
            this.Create    = new Command(this.OnCreate);
            this.List      = new ObservableList <Signature>();
        }
        public SignaturePadConfigViewModel(ISignatureService signatureService, IUserDialogService dialogs)
        {
            this.signatureService = signatureService;
            this.dialogs          = dialogs;

            var cfg = this.signatureService.Configuration;

            this.saveText    = cfg.SaveText;
            this.cancelText  = cfg.CancelText;
            this.promptText  = cfg.PromptText;
            this.captionText = cfg.CaptionText;
        }
Esempio n. 30
0
 public HomeController(ISignatureService signatureService, IPhotographService photographService, IFingerprintImageService fingerprintImageService, ISyncJobHistoryService syncJobHistory, IApprovalService approvalService, IProjectService projectService, IBaseDataService baseDataService, IUnitOfWorkAsync unitOfWork, IAppSettingService appSettingService)
 {
     _projectService          = projectService;
     _appSettingService       = appSettingService;
     _syncJobHistory          = syncJobHistory;
     _approvalService         = approvalService;
     _baseDataService         = baseDataService;
     _signatureService        = signatureService;
     _photographService       = photographService;
     _fingerprintImageService = fingerprintImageService;
     _unitOfWork = unitOfWork;
 }
Esempio n. 31
0
 public SignatureListViewModel(IFileSystem fileSystem,
                               IUserDialogService dialogService,
                               ISignatureService signatureService)
 {
     this.fileSystem       = fileSystem;
     this.dialogService    = dialogService;
     this.signatureService = signatureService;
     this.Configure        = new MvxCommand(() => this.ShowViewModel <SignatureConfigurationViewModel>());
     this.Create           = new MvxCommand(async() => await this.OnCreate());
     this.View             = new MvxCommand <Signature>(this.OnView);
     this.List             = new ObservableCollection <Signature>();
 }
Esempio n. 32
0
 public BlockVerifier(INetworkParameters parameters, ISignatureService signatureService, IEnumerable <ITransactionRule> txnRules, IEnumerable <IBlockRule> blockRules, IEnumerable <ValidInstructionType> validTxnTypes, IMerkleTreeBuilder merkleTreeBuilder, ITransactionKeyResolver transactionKeyResolver, IConsensusMethod consensusMethod, IHasher hasher, IInstructionRepository instructionRepository)
 {
     _parameters             = parameters;
     _signatureService       = signatureService;
     _txnRules               = txnRules;
     _blockRules             = blockRules;
     _merkleTreeBuilder      = merkleTreeBuilder;
     _transactionKeyResolver = transactionKeyResolver;
     _consensusMethod        = consensusMethod;
     _hasher = hasher;
     _instructionRepository = instructionRepository;
 }
 public UnicornManager(string panelUrl, string secret, TaskLoggingHelper log, IUrlProvider urlProvider,
                       IRequestFactory requestFactory, ISignatureService signatureService,
                       IResponseStreamProcessor <bool> streamProcessor)
 {
     _streamProcessor  = streamProcessor;
     _signatureService = signatureService;
     _requestFactory   = requestFactory;
     _urlProvider      = urlProvider;
     _panelUrl         = panelUrl;
     _secret           = secret;
     _log = log;
 }
Esempio n. 34
0
 public PaymentContext(
     IHttpClient httpClient,
     IJsonSerializer jsonSerializer,
     IXmlSerializer xmlSerializer,
     ISignatureService signatureService,
     IValidationProvider validationProvider)
 {
     _httpClient         = httpClient;
     _jsonSerializer     = jsonSerializer;
     _xmlSerializer      = xmlSerializer;
     _signatureService   = signatureService;
     _validationProvider = validationProvider;
 }
        public SignatureListViewModel(IFileSystem fileSystem,
                                      IFileViewer fileViewer,
                                      IUserDialogs dialogService,
                                      ISignatureService signatureService)
        {
            this.fileSystem       = fileSystem;
            this.fileViewer       = fileViewer;
            this.dialogService    = dialogService;
            this.signatureService = signatureService;

            this.Create = new MvxAsyncCommand(OnCreate);
            this.View   = new MvxCommand <IFile>(OnView);
            this.List   = new ObservableCollection <IFile>();
        }
        public SignatureListViewModel(IFileSystem fileSystem, 
								      IFileViewer fileViewer,
                                      IUserDialogService dialogService,
                                      ISignatureService signatureService){
			this.fileSystem = fileSystem;
			this.fileViewer = fileViewer;
            this.dialogService = dialogService;
            this.signatureService = signatureService;

            this.Configure = new MvxCommand(() => this.ShowViewModel<SignatureConfigurationViewModel>());
			this.Create = new MvxCommand(async () => await this.OnCreate());
            this.View = new MvxCommand<IFile>(this.OnView);
			this.List = new ObservableCollection<IFile>();
        }
Esempio n. 37
0
 public EnrollmentController(IFingerprintReasonService fingerprintReasonService, IPhotographService photographService, IProjectService projectService, IBaseDataService baseDataService, IUnitOfWorkAsync unitOfWork, IAppSettingService appSettingService, ISignatureService signatureService, IFingerprintImageService fingerprintImageService, IFingerprintTemplateService fingerprintTemplateService)
 {
     _projectService             = projectService;
     _photographService          = photographService;
     _projectService             = projectService;
     _fingerprintImageService    = fingerprintImageService;
     _fingerprintReasonService   = fingerprintReasonService;
     _fingerprintTemplateService = fingerprintTemplateService;
     _signatureService           = signatureService;
     _baseDataService            = baseDataService;
     _baseDataService            = baseDataService;
     _appSettingService          = appSettingService;
     _unitOfWork = unitOfWork;
 }
Esempio n. 38
0
        public async Task VerifyTask(ITaskManager taskManager, Definition definition)
        {
            // Verify task signatures if a fingerprint is configured for the Agent.
            var                       configurationStore = HostContext.GetService <IConfigurationStore>();
            AgentSettings             settings           = configurationStore.GetSettings();
            SignatureVerificationMode verificationMode   = SignatureVerificationMode.None;

            if (settings.SignatureVerification != null)
            {
                verificationMode = settings.SignatureVerification.Mode;
            }

            if (verificationMode != SignatureVerificationMode.None)
            {
                ISignatureService signatureService       = HostContext.CreateService <ISignatureService>();
                Boolean           verificationSuccessful = await signatureService.VerifyAsync(definition, ExecutionContext.CancellationToken);

                if (verificationSuccessful)
                {
                    ExecutionContext.Output(StringUtil.Loc("TaskSignatureVerificationSucceeeded"));

                    // Only extract if it's not the checkout task.
                    if (!String.IsNullOrEmpty(definition.ZipPath))
                    {
                        taskManager.Extract(ExecutionContext, Task);
                    }
                }
                else
                {
                    String message = StringUtil.Loc("TaskSignatureVerificationFailed");

                    if (verificationMode == SignatureVerificationMode.Error)
                    {
                        throw new InvalidOperationException(message);
                    }
                    else
                    {
                        ExecutionContext.Warning(message);
                    }
                }
            }
            else if (settings.AlwaysExtractTask)
            {
                // Only extract if it's not the checkout task.
                if (!String.IsNullOrEmpty(definition.ZipPath))
                {
                    taskManager.Extract(ExecutionContext, Task);
                }
            }
        }
        public SignaturePadConfigViewModel(ISignatureService signatureService) {
            this.signatureService = signatureService;
            this.Colors = typeof(Color)
                .GetTypeInfo()
                .DeclaredFields
                .Select(x => new ColorDefinition {
                    Name = x.Name,
                    Color = (Color)x.GetValue(null)
                })
                .ToList();

            var cfg = this.signatureService.Configuration;
            this.saveText = cfg.SaveText;
            this.cancelText = cfg.CancelText;
            this.promptText = cfg.PromptText;
            this.captionText = cfg.CaptionText;

            //this.bgColor = this.GetColorDefinition(cfg.BackgroundColor);
            //this.promptTextColor = this.GetColorDefinition(cfg.PromptTextColor);
            //this.captionTextColor = this.GetColorDefinition(cfg.CaptionTextColor);
            //this.signatureLineColor = this.GetColorDefinition(cfg.SignatureLineColor);
            //this.strokeColor = this.GetColorDefinition(cfg.StrokeColor);
        }
Esempio n. 40
0
 public SignatureController(ISignatureService signatureService, IDropdownService dropdownService)
 {
     _signatureService = signatureService;
     _dropdownService = dropdownService;
 }
 public SupportUsController(IEmailService emailService, ISignatureService signatureService, ISubscriptionService subscriptionService)
 {
     this.emailService = emailService;
     this.signatureService = signatureService;
     this.subscriptionService = subscriptionService;
 }
Esempio n. 42
0
 protected ChapClientServiceBase(string remoteBaseUrl, string challengeUrl, ISignatureService responseService)
 {
     _remoteBaseUrl = remoteBaseUrl;
     _challengeUrl = challengeUrl;
     _responseService = responseService;
 }