/// <summary>
 /// Use given option value.
 /// </summary>
 /// <param name="applicationOptions"></param>
 public void Apply(MiCakeApplicationOptions applicationOptions)
 {
     FindAutoServiceTypes  = applicationOptions.FindAutoServiceTypes;
     DomianLayerAssemblies = applicationOptions.DomianLayerAssemblies;
     Handlers       = applicationOptions.Handlers;
     AdditionalInfo = applicationOptions.AdditionalInfo;
 }
示例#2
0
 public MiCakeApplication(
     IServiceCollection services,
     MiCakeApplicationOptions options,
     bool needNewScope)
 {
     ApplicationOptions = options;
     _services          = services;
     _needNewScope      = needNewScope;
 }
 public DefaultMiCakeBuilderProvider(
     IServiceCollection services,
     Type entryModule,
     MiCakeApplicationOptions options,
     bool needScope)
 {
     _services    = services;
     _entryModule = entryModule;
     _options     = options;
     _needScope   = needScope;
 }
示例#4
0
        public MiCakeBuilder(IServiceCollection services,
                             Type entryType,
                             MiCakeApplicationOptions options,
                             bool needNewScope = false)
        {
            _services  = services;
            _entryType = entryType;
            _options   = options ?? new MiCakeApplicationOptions();

            _needNewScopeed = needNewScope;

            AddEnvironment();
        }