Exemple #1
0
 public InvoiceService(IInvoicesRepository invoiceRepository, IInvoiceAutoNumberGenerator invNumberGenerator, MongoConfig mongo, IBus bus)
 {
     this.invRepo = invoiceRepository;
     this.gen = invNumberGenerator;
     this.mongo = mongo;
     this.bus = bus;
 }
Exemple #2
0
        public void Init()
        {
            NServiceBus.Configure.With()
              .DefaultBuilder()
              .BinarySerializer()
              .MsmqSubscriptionStorage();

            mongo = new MongoConfig();
            NServiceBus.Configure.Instance.Configurer.RegisterSingleton<MongoConfig>(mongo);
            NServiceBus.Configure.Instance.Configurer.ConfigureComponent<InvoiceAutoNumberGenerator>(NServiceBus.ObjectBuilder.ComponentCallModelEnum.Singlecall);
        }
Exemple #3
0
 public AccountRepository(MongoConfig mongoConfig)
 {
     mongo = mongoConfig;
 }
 public CustomerReportRepository(MongoConfig mongo)
 {
     this.mongo = mongo;
 }
Exemple #5
0
 public GroupService(MongoConfig mongo)
 {
     collections = mongo.MongoDatabase.GetCollection(typeof(Group).Name);
 }
Exemple #6
0
 public ItemQuery(MongoConfig mongoConfig)
 {
     _document = mongoConfig.MongoDatabase.GetCollection(typeof(Item).Name);
     _reports = mongoConfig.MongoDatabase.GetCollection(typeof(ItemReports).Name);
 }
Exemple #7
0
 public PaymentTermsQuery(MongoConfig config)
 {
     _collections = config.MongoDatabase.GetCollection(typeof(PaymentTerms).Name);
 }
Exemple #8
0
 public GroupQuery(MongoConfig config)
 {
     _collections = config.MongoDatabase.GetCollection(typeof(Group).Name);
 }
Exemple #9
0
 public PaymentTermsService(MongoConfig mongo)
 {
     collections = mongo.MongoDatabase.GetCollection(typeof(PaymentTerms).Name);
 }
 public OrganizationReportRepository(MongoConfig mongoConfig)
 {
     mongo = mongoConfig;
 }
Exemple #11
0
 public CurrencyService(MongoConfig mongo,IBus bus)
 {
     _collections = mongo.MongoDatabase.GetCollection(typeof(Currencies).Name);
     _bus = bus;
 }
Exemple #12
0
 public InvoicesRepository(MongoConfig mongo)
 {
     this.mongo = mongo;
 }
Exemple #13
0
 public PaymentRepository(MongoConfig mongo)
 {
     this.Mongo = mongo;
 }
Exemple #14
0
 public CustomerService(MongoConfig mongo, IBus bus)
 {
     this.mongo = mongo;
     this.bus = bus;
 }
 public InvoiceAutoNumberGenerator(MongoConfig mongoConfig)
 {
     this.mongo = mongoConfig;
 }
Exemple #16
0
 public ServiceTax(MongoConfig mongo, IBus bus)
 {
     _collections = mongo.MongoDatabase.GetCollection(typeof(Taxes).Name);
     _bus = bus;
 }
Exemple #17
0
 public TaxQueryRepository(MongoConfig mongo)
 {
     _collections = mongo.ReportingDatabase.GetCollection(typeof(Taxes).Name);
 }
Exemple #18
0
 public LogoOrganizationQuery(MongoConfig config)
 {
     _collection = config.MongoDatabase.GetCollection(typeof(LogoOrganization).Name);
 }
 public CurrencyQueryRepository(MongoConfig mongo)
 {
     _collections = mongo.ReportingDatabase.GetCollection(typeof(Currencies).Name);
 }