示例#1
0
 public InvoiceService(IInvoicesRepository invoiceRepository, IInvoiceAutoNumberGenerator invNumberGenerator, MongoConfig mongo, IBus bus)
 {
     this.invRepo = invoiceRepository;
     this.gen = invNumberGenerator;
     this.mongo = mongo;
     this.bus = bus;
 }
示例#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);
        }
示例#3
0
 public AccountRepository(MongoConfig mongoConfig)
 {
     mongo = mongoConfig;
 }
示例#4
0
 public CustomerReportRepository(MongoConfig mongo)
 {
     this.mongo = mongo;
 }
示例#5
0
 public GroupService(MongoConfig mongo)
 {
     collections = mongo.MongoDatabase.GetCollection(typeof(Group).Name);
 }
示例#6
0
文件: ItemQuery.cs 项目: dnywu/sales
 public ItemQuery(MongoConfig mongoConfig)
 {
     _document = mongoConfig.MongoDatabase.GetCollection(typeof(Item).Name);
     _reports = mongoConfig.MongoDatabase.GetCollection(typeof(ItemReports).Name);
 }
示例#7
0
 public PaymentTermsQuery(MongoConfig config)
 {
     _collections = config.MongoDatabase.GetCollection(typeof(PaymentTerms).Name);
 }
示例#8
0
文件: GroupQuery.cs 项目: dnywu/sales
 public GroupQuery(MongoConfig config)
 {
     _collections = config.MongoDatabase.GetCollection(typeof(Group).Name);
 }
示例#9
0
 public PaymentTermsService(MongoConfig mongo)
 {
     collections = mongo.MongoDatabase.GetCollection(typeof(PaymentTerms).Name);
 }
示例#10
0
 public OrganizationReportRepository(MongoConfig mongoConfig)
 {
     mongo = mongoConfig;
 }
示例#11
0
 public CurrencyService(MongoConfig mongo,IBus bus)
 {
     _collections = mongo.MongoDatabase.GetCollection(typeof(Currencies).Name);
     _bus = bus;
 }
示例#12
0
 public InvoicesRepository(MongoConfig mongo)
 {
     this.mongo = mongo;
 }
示例#13
0
 public PaymentRepository(MongoConfig mongo)
 {
     this.Mongo = mongo;
 }
示例#14
0
 public CustomerService(MongoConfig mongo, IBus bus)
 {
     this.mongo = mongo;
     this.bus = bus;
 }
示例#15
0
 public InvoiceAutoNumberGenerator(MongoConfig mongoConfig)
 {
     this.mongo = mongoConfig;
 }
示例#16
0
文件: ServiceTax.cs 项目: dnywu/sales
 public ServiceTax(MongoConfig mongo, IBus bus)
 {
     _collections = mongo.MongoDatabase.GetCollection(typeof(Taxes).Name);
     _bus = bus;
 }
示例#17
0
 public TaxQueryRepository(MongoConfig mongo)
 {
     _collections = mongo.ReportingDatabase.GetCollection(typeof(Taxes).Name);
 }
示例#18
0
 public LogoOrganizationQuery(MongoConfig config)
 {
     _collection = config.MongoDatabase.GetCollection(typeof(LogoOrganization).Name);
 }
示例#19
0
 public CurrencyQueryRepository(MongoConfig mongo)
 {
     _collections = mongo.ReportingDatabase.GetCollection(typeof(Currencies).Name);
 }