public CModelProvider(IServiceAdapter adapter) { if (adapter != null) { Adapter = adapter; EmployeesCommand = new CommandRespository(GetEmployees); } }
public Synchronizer(DatabaseInfo db, IServiceAdapter adapter, Func<DatabaseInfo, bool> queryUpdate) { if (adapter == null) throw new ArgumentNullException("adapter"); if (db == null) throw new ArgumentNullException("db"); if (queryUpdate == null) throw new ArgumentNullException("queryUpdate"); _db = db; _adapter = adapter; _queryUpdate = queryUpdate; _info = _adapter.Initialize(db); _adapter.Error += _adapter_Error; }
protected override void Activities(Fiber fiber) { manager = (IServicesManager)Managers.Find($"{serviceName}ServicesManager"); if (manager == default) { Debug.LogError(Error = $"No service manager '{serviceName}ServicesManager' in a Managers game object"); } else { fiber.OnError(exit: true, actor: message => Error = message).Do(Reset) .Begin .WaitFor(_ => MethodCache.Call(serviceAdapter, "Call", this) as Emitter) .Until(_ => (Error == null) || ((serviceAdapter = manager.Next()) == null)) .If(_ => serviceAdapter == null).Error($"No Server '{serviceName} {entryPointName}' can Respond").End .Finish(); } }
public Synchronizer(DatabaseInfo db, IServiceAdapter adapter, Func <DatabaseInfo, bool> queryUpdate) { if (adapter == null) { throw new ArgumentNullException("adapter"); } if (db == null) { throw new ArgumentNullException("db"); } if (queryUpdate == null) { throw new ArgumentNullException("queryUpdate"); } _db = db; _adapter = adapter; _queryUpdate = queryUpdate; _info = _adapter.Initialize(db); _adapter.Error += _adapter_Error; }
public IdentitySettingService(IAccountService accountService, IServiceAdapter serviceAdapter) : base(accountService, serviceAdapter) { }
private void Reset(Fiber fiber) { Error = null; serviceAdapter = manager.First(); }
public HomeController(IProductService productService, IServiceAdapter serviceAdapter) { _productService = productService; _serviceAdapter = serviceAdapter; }
public ClarifiNotifierController(IServiceAdapter <RoomStandardizationEvent> adapter) { Adapter = adapter; }
public Adapter(IUserInterfaceAdapter uiAdapter, IServiceAdapter serviceAdapter) { _userInterfaceAdapter = uiAdapter; _serviceAdapter = serviceAdapter; }