Exemple #1
0
        public void GetValidHours(string paramID, Action<int[]> callback)
        {
            Debug.Assert(callback != null);

            DetailsContext context = new DetailsContext();
            var qValidHours = context.GetValidHours(paramID, ServerSave.Current.ConnectionServerNames,
                hour =>
                {
                    Debug.WriteLine("{0:HH:mm:ss.fff}>GetValidHours", DateTime.Now);
                    if (ProcessError(hour))
                    {
                        callback(null);
                        return;
                    }

                    callback(hour.Value);
                }, null);
        }