コード例 #1
0
ファイル: Profile.cs プロジェクト: mtscout6/structuremap
 public void Merge(Profile destination)
 {
     foreach (var pair in _instances)
     {
         destination.SetDefault(pair.Key, pair.Value);
     }
 }
コード例 #2
0
        public void SetDefault(string profileName, Type pluginType, Instance instance)
        {
            Profile profile = getProfile(profileName);

            profile.SetDefault(pluginType, instance);
            if (profileName == _defaultProfileName)
            {
                _default.FillTypeInto(pluginType, instance);
                _currentProfile.FillTypeInto(pluginType, instance);
            }
        }
コード例 #3
0
ファイル: Profile.cs プロジェクト: hp4711/structuremap
 public void Merge(Profile destination)
 {
     foreach (var pair in _instances)
     {
         destination.SetDefault(pair.Key, pair.Value);
     }
 }
コード例 #4
0
 public void SetDefault(Type pluginType, Instance instance)
 {
     _currentProfile.SetDefault(pluginType, instance);
     _default.FillTypeInto(pluginType, instance);
 }