Microsoft.VisualStudio.Project.OleServiceProvider.ServiceData.ServiceData C# (CSharp) Method

ServiceData() public method

public ServiceData ( Type serviceType, object instance, object>.Func serviceFactory, bool shouldDispose ) : System
serviceType System.Type
instance object
serviceFactory object>.Func
shouldDispose bool
return System
            public ServiceData(Type serviceType, object instance, Func<Type, object> serviceFactory, bool shouldDispose)
            {
                if(null == serviceType)
                {
                    throw new ArgumentNullException("serviceType");
                }

                if((null == instance) && (null == serviceFactory))
                {
                    throw new ArgumentNullException("instance");
                }

                this.serviceType = serviceType;
                this.instance = instance;
                this.creator = serviceFactory;
                this.shouldDispose = shouldDispose;
            }
OleServiceProvider.ServiceData