Beispiel #1
0
        public void GetMailExtra(Action<MailExtraLog[]> callback)
        {
            Debug.Assert(callback != null);

            DetailsContext context = new DetailsContext();
            context.RegisterSIDParam(SIDs,
                c =>
                {
                    if (ProcessError(c))
                    {
                        callback(null);
                        return;
                    }

                    var q = context.GetMailExtrasQuery(c.Value, ServerSave.Current.ConnectionServerNames);
                    context.Load(q,
                        cc =>
                        {
                            if (ProcessError(cc))
                            {
                                callback(null);
                                return;
                            }

                            callback(ToMailExtraLog(cc.Entities.ToArray()));
                        }, null);
                }, null);
        }