protected MptxInstanceContext(
     IMptxStateProvider stateProvider,
     MptxInstance instance)
 {
     StateProvider = stateProvider ?? throw new ArgumentNullException(nameof(stateProvider));
     Instance      = instance ?? throw new ArgumentNullException(nameof(instance));
 }
Beispiel #2
0
 public MptxManager(
     IMptxStateProvider stateProvider,
     MptxInstanceContextFactory mptxInstanceContextFactory,
     IServiceProvider serviceProvider)
 {
     _stateProvider          = stateProvider;
     _instanceContextFactory = mptxInstanceContextFactory;
     _serviceProvider        = serviceProvider;
 }
 public MptxInstanceContextFactory(IMptxStateProvider stateProvider)
 {
     _stateProvider = stateProvider;
 }