Example #1
0
 public UserRegistrator(User user, SuccessCallbackDelegate successCallback,
                        ErrorCallbackDelegate errorCallback)
 {
     this.errorCallback   = errorCallback;
     this.successCallback = successCallback;
     this.user            = user;
 }
 public SystemNewsPersistency(
     NewsRetrieved newsRetrievedDelegate,
     ErrorCallbackDelegate errorCallback)
 {
     this.newsRetrievedDelegate = newsRetrievedDelegate;
     this.errorCallback         = errorCallback;
 }
Example #3
0
 public PsaPreImportDatasetsDuplicatesFilter(
     PsaDatasetsFiltered callbackSuccess,
     ErrorCallbackDelegate callbackError)
 {
     this.callbackError   = callbackError;
     this.callbackSuccess = callbackSuccess;
 }
Example #4
0
 public AnalyticRuleSettingsPersistency(
     SuccessCallbackDelegate successCallback,
     ErrorCallbackDelegate errorCallback)
 {
     this.errorCallback   = errorCallback;
     this.successCallback = successCallback;
 }
 public VehicleEventsPersistency(
     EventsRetrieved eventsRetrievedDelegate,
     ErrorCallbackDelegate errorCallback)
 {
     this.eventsRetrievedDelegate = eventsRetrievedDelegate;
     this.errorCallback           = errorCallback;
 }
 public VehicleEventsPersistency(
     SuccessCallbackDelegate successCallback,
     ErrorCallbackDelegate errorCallback)
 {
     this.errorCallback   = errorCallback;
     this.successCallback = successCallback;
 }
 public AnalyticModelSettingsPersistencyObjectCommonRail(
     SuccessfullyFetchedCommonRailModelSettings successCallback,
     ErrorCallbackDelegate errorCallback)
 {
     this.errorCallback   = errorCallback;
     this.successCallback = successCallback;
 }
Example #8
0
 public AnalyticRuleSettingsPersistency(
     AnalyticRuleSettingsRetrieved collectionFetchedCallback,
     ErrorCallbackDelegate errorCallback)
 {
     this.errorCallback             = errorCallback;
     this.collectionFetchedCallback = collectionFetchedCallback;
 }
Example #9
0
 public SystemExecutionContext(StepCallbackDelegate step8085, StepCallbackDelegate stepCP, StepCallbackDelegate stepMesa, ErrorCallbackDelegate error)
 {
     StepCallback8085 = step8085;
     StepCallbackCP   = stepCP;
     StepCallbackMesa = stepMesa;
     ErrorCallback    = error;
 }
 protected AnalyticModelSettingsFetchingFactoryBase(
     ErrorCallbackDelegate errorCallback,
     VehicleInformation vehicleInformation)
 {
     this.errorCallback      = errorCallback;
     this.vehicleInformation = vehicleInformation;
 }
Example #11
0
 public AnalyticRuleSettingsPersistency(
     AnalyticRulePrioritySettingsRetrieved singleFetchedCallback,
     ErrorCallbackDelegate errorCallback)
 {
     this.errorCallback         = errorCallback;
     this.singleFetchedCallback = singleFetchedCallback;
 }
Example #12
0
 public UsersRetriever(
     UserCallback callback,
     ErrorCallbackDelegate errorCallback)
 {
     this.callback      = callback;
     this.errorCallback = errorCallback;
 }
Example #13
0
 public AnalyticModelSettingsFetchingFactoryElectricSystem(
     VehicleInformation vehicleInformation,
     AnalyticModelSettingsFetchedCallback callback,
     ErrorCallbackDelegate errorCallback)
     : base(errorCallback, vehicleInformation)
 {
     this.callback = callback;
 }
 public StatisticsGenerationDatasetCollectionProcessor(
     IList <PsaDataset> source,
     SuccessCallbackDelegate successCallback,
     ErrorCallbackDelegate errorCallback)
 {
     this.errorCallback   = errorCallback;
     this.successCallback = successCallback;
     this.source          = source;
 }
Example #15
0
 public LastVersionChecker(
     NewVersionAvailableCallbackDelegate newVersionCallback,
     ErrorCallbackDelegate errorCallback)
 {
     this.errorCallback         = errorCallback;
     this.newVersionCallback    = newVersionCallback;
     worker.DoWork             += GetLastVersion;
     worker.RunWorkerCompleted += OnWorkerCompleted;
 }
Example #16
0
 public AnalyticRuleSettingsCreator(
     SuccessCallbackDelegate successCallback,
     ErrorCallbackDelegate errorCallback,
     SuccessCallbackDelegate alreadyExistsCallback)
 {
     this.errorCallback         = errorCallback;
     this.alreadyExistsCallback = alreadyExistsCallback;
     this.successCallback       = successCallback;
 }
Example #17
0
 public AnalysisEngine(Vehicle vehicle,
                       EngineFinishedCallback finishedCallback,
                       ErrorCallbackDelegate errorCallback)
 {
     if (vehicle == null)
     {
         throw new ArgumentNullException("vehicle");
     }
     this.vehicle          = vehicle;
     this.finishedCallback = finishedCallback;
     this.errorCallback    = errorCallback;
 }
 public AnalyticModelSettingsFetchingFactoryPetrolEnginePurification(
     VehicleInformation vehicleInformation,
     AnalyticModelSettingsFetchedCallback successCallback,
     ErrorCallbackDelegate errorCallback)
     : base(errorCallback, vehicleInformation)
 {
     if (vehicleInformation.Engine.FuelType != FuelType.Petrol)
     {
         throw new Exception(@"Should be petrol engine!");
     }
     this.successCallback = successCallback;
 }
Example #19
0
 public StatisticsGenerationEngine(
     StatisticsGenerationUpdate updateCallback,
     SuccessCallbackDelegate completeCallback,
     ErrorCallbackDelegate errorCallback,
     IDatasetsPagedRetriever datasetsPagedRetriever)
 {
     this.errorCallback                       = errorCallback;
     this.completeCallback                    = completeCallback;
     this.updateCallback                      = updateCallback;
     this.datasetsPagedRetriever              = datasetsPagedRetriever;
     this.datasetsPagedRetriever.Error       += OnPagedRetrieverError;
     this.datasetsPagedRetriever.GotNextPage += OnRetrieverGotNextPage;
 }
Example #20
0
 public AnalyticModelSettingsFetchingFactoryCommonRail(
     VehicleInformation vehicleInformation,
     AnalyticModelSettingsFetchedCallback successCallback,
     ErrorCallbackDelegate errorCallback)
     : base(errorCallback, vehicleInformation)
 {
     if (vehicleInformation.Engine.InjectionType
         != InjectionType.CommonRail)
     {
         throw new Exception(@"Unexpected injection type!. 
             Engine should be common rail!");
     }
     this.successCallback = successCallback;
 }
 public VehicleAnalyticModelFactory(Vehicle vehicle,
                                    VehicleInformation vehicleInformation,
                                    AnalyticModelCreatedCallback successCallback,
                                    ErrorCallbackDelegate errorCallback)
 {
     if (vehicle == null)
     {
         throw new ArgumentNullException("vehicle");
     }
     this.vehicleInformation = vehicleInformation;
     this.errorCallback      = errorCallback;
     this.successCallback    = successCallback;
     this.vehicle            = vehicle;
 }
Example #22
0
        //create request
        public static AbRequest Create(FinishCallbackDelegate finishCallback = null,
                                       ErrorCallbackDelegate errorCallback   = null)
        {
            var go  = new GameObject("AbRequest");
            var req = go.AddComponent <AbRequest>();

            req._mDelFinishCallback = finishCallback;
            req._mDelErrorCallback  = errorCallback;
            req._mILoadIndex        = 0;
            req._mICompleteNum      = 0;
            req._mLstPath.Clear();
            req._mLstLoader.Clear();
            req._mMapRes.Clear();
            return(req);
        }
        private StreamPlayerProxy CreateAndInitializePlayer()
        {
            var player = new StreamPlayerProxy();

            _streamStartedCallback = new CallbackDelegate(RaiseStreamStartedEvent);
            _streamStoppedCallback = new CallbackDelegate(RaiseStreamStoppedEvent);
            _streamFailedCallback  = RaiseStreamFailedEvent;

            var playerParams = new StreamPlayerParams
            {
                window = _videoWindow.Handle,
                streamStartedCallback = Marshal.GetFunctionPointerForDelegate(_streamStartedCallback),
                streamStoppedCallback = Marshal.GetFunctionPointerForDelegate(_streamStoppedCallback),
                streamFailedCallback  = Marshal.GetFunctionPointerForDelegate(_streamFailedCallback)
            };

            player.Initialize(playerParams);

            return(player);
        }
Example #24
0
 public ClientRetriever(UsersCallback usersCallback,
                        ErrorCallbackDelegate errorCallback)
 {
     this.usersCallback = usersCallback;
     this.errorCallback = errorCallback;
 }
Example #25
0
 public static extern bool EnableErrorCallback(ErrorCallbackDelegate Callback);
        private StreamPlayerProxy CreateAndInitializePlayer()
        {
            var player = new StreamPlayerProxy();

            _streamStartedCallback = new CallbackDelegate(RaiseStreamStartedEvent);
            _streamStoppedCallback = new CallbackDelegate(RaiseStreamStoppedEvent);
            _streamFailedCallback = RaiseStreamFailedEvent;
            
            var playerParams = new StreamPlayerParams
            {
                window = _videoWindow.Handle,
                streamStartedCallback = Marshal.GetFunctionPointerForDelegate(_streamStartedCallback),
                streamStoppedCallback = Marshal.GetFunctionPointerForDelegate(_streamStoppedCallback),
                streamFailedCallback = Marshal.GetFunctionPointerForDelegate(_streamFailedCallback)
            };

            player.Initialize(playerParams);

            return player;
        }
Example #27
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public PortableDataImporter(SuccessCallbackDelegate successCallback,
                             ErrorCallbackDelegate errorCallback)
 {
     this.errorCallback   = errorCallback;
     this.successCallback = successCallback;
 }
Example #28
0
 public static extern void fslSetErrorCallback(ErrorCallbackDelegate d);
Example #29
0
 public void set_errcall(ErrorCallbackDelegate callback)
 {
     DbXmlPINVOKE.DbEnv_set_errcall(this.swigCPtr, callback);
 }
Example #30
0
 public PsaDatasetPersistency(DatasetsRetrievedDelegate callbackSuccess,
                              ErrorCallbackDelegate callbackError)
 {
     this.callbackSuccess = callbackSuccess;
     this.callbackError   = callbackError;
 }
Example #31
0
 public static extern bool EnableErrorCallback(ErrorCallbackDelegate Callback);
Example #32
0
 public void set_errcall(ErrorCallbackDelegate callback)
 {
     DbXmlPINVOKE.DbEnv_set_errcall(this.swigCPtr, callback);
 }