GithubHelp home page GithubHelp logo

zamin's Issues

باگ MessageInbox

سلام خسته نباشید.
در MessageInbox جدول ایجاد نمیشود و باعث خطا میشود
این باگ را در
pull request
زیر درست کردم:
#17

افتادن در چرخه لوپ زمانی که از dispatch events استفاده میشه

من قبلا در کد شما این کد رو دیده بودم و بکار برده بودم الان پیدا نکردم متاسفانه
یک سئوال داشتم اگر این کد رو داخل savechanges() استفاده کنیم events ما catch میشه و مشکلی نیست اما همزمان اگر داخل evenet handler هم از savechange استفاده کنیم یه circle اتفاق میافته و دوباره همون event صدا زده میشه و این چرخه ادامه داره .... چطوری این قسمت رو هندل کردید شما؟ اگر راه های دیگه ای هست لطفا بنویسید ممنون میشم

private void DispatchEvents(DbContextEventData eventData)
    {
        var dispatcher = eventData.Context.GetService<IEventDispatcher>();

        var entities = eventData.Context.ChangeTracker
            .Entries<IAggregateRoot>()
            .Where(c => c.State == EntityState.Added || c.State == EntityState.Modified)
            .Select(c => c.Entity).ToList();

        foreach (var entity in entities)
        {
            foreach (dynamic @event in entity.GetEvents())
            {
                dispatcher.PublishDomainEventAsync(@event);
            }

            entity.ClearEvents();
        }
    }

باگ زمین program

در ایجاد برنامه فایل ها log ایجاد نشده در دیتابیس
لطفا مشکلش رو درست کنید
#22

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.