コード例 #1
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);
            }
        }
コード例 #2
0
ファイル: Profile.cs プロジェクト: hp4711/structuremap
 public void FillAllTypesInto(Profile destination)
 {
     foreach (var pair in _instances)
     {
         destination.FillTypeInto(pair.Key, pair.Value);
     }
 }
コード例 #3
0
ファイル: Profile.cs プロジェクト: mtscout6/structuremap
 public void FillAllTypesInto(Profile destination)
 {
     foreach (var pair in _instances)
     {
         destination.FillTypeInto(pair.Key, pair.Value);
     }
 }
コード例 #4
0
    public void FillDefault(Profile profile)
    {
        if (string.IsNullOrEmpty(DefaultInstanceKey))
            {
                return;
            }

            Instance defaultInstance = GetInstance(DefaultInstanceKey);
            if (defaultInstance == null)
            {
                Parent.Log.RegisterError(210, DefaultInstanceKey, PluginType);
            }

            profile.FillTypeInto(PluginType, defaultInstance);
    }