예제 #1
0
		public StaticPartialCachingControl (string ctrlID, string guid, int duration, string varyByParams,
						    string varyByControls, string varyByCustom, string sqlDependency,
						    BuildMethod buildMethod)
			: this (ctrlID, guid, duration, varyByParams, varyByControls, varyByCustom, buildMethod)
		{
//			this.sqlDependency = sqlDependency;
		}
예제 #2
0
 /// <internalonly/>
 /// <devdoc>
 ///    <para>[To be supplied.]</para>
 /// </devdoc>
 static public void BuildCachedControl(Control parent, string ctrlID, string guid,
                                       int duration, string varyByParams, string varyByControls, string varyByCustom, string sqlDependency,
                                       BuildMethod buildMethod)
 {
     BuildCachedControl(parent, ctrlID, guid, duration, varyByParams,
                        varyByControls, varyByCustom, sqlDependency, buildMethod, null);
 }
예제 #3
0
		public StaticPartialCachingControl (string ctrlID, string guid, int duration, string varyByParams,
						    string varyByControls, string varyByCustom, string sqlDependency,
						    BuildMethod buildMethod, string providerName)
			: this (ctrlID, guid, duration, varyByParams, varyByControls, varyByCustom, sqlDependency, buildMethod)
		{
			ProviderName = providerName;
		}
예제 #4
0
 /// <internalonly/>
 /// <devdoc>
 ///    <para>[To be supplied.]</para>
 /// </devdoc>
 public StaticPartialCachingControl(string ctrlID, string guid, int duration,
                                    string varyByParams, string varyByControls, string varyByCustom, string sqlDependency,
                                    BuildMethod buildMethod)
     : this(ctrlID, guid, duration, varyByParams, varyByControls,
            varyByCustom, sqlDependency, buildMethod, null)
 {
 }
예제 #5
0
 public void DefineExpect(string directory, string connectionString)
 {
     expect                  = new Settings();
     expect.Directory        = directory;
     expect.ConnectionString = connectionString;
     buildMethod             = BuildQueriesBased;
 }
		public static void BuildCachedControl (Control parent, string ctrlID, string guid,
				int duration, string varyByParams, string varyByControls,
				string varyByCustom, string sqlDependency, BuildMethod buildMethod)
		{
			BuildCachedControl (parent, ctrlID, guid,
				duration, varyByParams, varyByControls,
				varyByCustom, buildMethod);
		}
예제 #7
0
		public static void BuildCachedControl (Control parent, string ctrlID, string guid,
						       int duration, string varyByParams, string varyByControls, string varyByCustom,
						       string sqlDependency, BuildMethod buildMethod)
		{
			StaticPartialCachingControl NewControl = new StaticPartialCachingControl (ctrlID, guid, duration,
												  varyByParams, varyByControls, varyByCustom,
												  sqlDependency, buildMethod);
			if (parent != null)
				parent.Controls.Add (NewControl);
		}
예제 #8
0
        static public void BuildCachedControl(Control parent, string ctrlID, string guid,
                                              int duration, string varyByParams, string varyByControls, string varyByCustom, string sqlDependency,
                                              BuildMethod buildMethod, string providerName)
        {
            StaticPartialCachingControl pcc = new StaticPartialCachingControl(
                ctrlID, guid, duration, varyByParams, varyByControls, varyByCustom, sqlDependency,
                buildMethod, providerName);

            ((IParserAccessor)parent).AddParsedSubObject(pcc);
        }
예제 #9
0
        public static void BuildCachedControl(Control parent, string ctrlID, string guid,
                                              int duration, string varyByParams, string varyByControls,
                                              string varyByCustom, BuildMethod buildMethod)
        {
            StaticPartialCachingControl NewControl =
                new StaticPartialCachingControl(ctrlID, guid, duration,
                                                varyByParams, varyByControls, varyByCustom,
                                                buildMethod);

            parent.Controls.Add(NewControl);
        }
        public static void BuildCachedControl(Control parent, string ctrlID, string guid, int duration,
                                              string varyByParams, string varyByControls, string varyByCustom,
                                              string sqlDependency, BuildMethod buildMethod, string providerName)
        {
            var ctl = new StaticPartialCachingControl(ctrlID, guid, duration, varyByParams, varyByControls, varyByCustom,
                                                      sqlDependency, buildMethod, providerName);

            if (parent != null)
            {
                parent.Controls.Add(ctl);
            }
        }
//		string sqlDependency;

        public StaticPartialCachingControl(string ctrlID, string guid, int duration,
                                           string varyByParams, string varyByControls, string varyByCustom,
                                           BuildMethod buildMethod)
        {
            CtrlID         = ctrlID;
            Guid           = guid;
            Duration       = duration;
            VaryByParams   = varyByParams;
            VaryByControls = varyByControls;
            VaryByCustom   = varyByCustom;

            this.buildMethod = buildMethod;
        }
예제 #12
0
//		string sqlDependency;

		public StaticPartialCachingControl (string ctrlID, string guid, int duration,
				string varyByParams, string varyByControls, string varyByCustom,
				BuildMethod buildMethod)
		{
			CtrlID = ctrlID;
			Guid = guid;
			Duration = duration;
			VaryByParams = varyByParams;
			VaryByControls = varyByControls;
			VaryByCustom = varyByCustom;
			
			this.buildMethod = buildMethod;
		}
 public StaticPartialCachingControl(string ctrlID, string guid, int duration, string varyByParams, string varyByControls, string varyByCustom, string sqlDependency, BuildMethod buildMethod, string providerName)
 {
     base._ctrlID = ctrlID;
     base.Duration = new TimeSpan(0, 0, duration);
     base.SetVaryByParamsCollectionFromString(varyByParams);
     if (varyByControls != null)
     {
         base._varyByControlsCollection = varyByControls.Split(new char[] { ';' });
     }
     base._varyByCustom = varyByCustom;
     base._guid = guid;
     this._buildMethod = buildMethod;
     base._sqlDependency = sqlDependency;
     base._provider = providerName;
 }
 public StaticPartialCachingControl(string ctrlID, string guid, int duration, string varyByParams, string varyByControls, string varyByCustom, string sqlDependency, BuildMethod buildMethod, string providerName)
 {
     base._ctrlID  = ctrlID;
     base.Duration = new TimeSpan(0, 0, duration);
     base.SetVaryByParamsCollectionFromString(varyByParams);
     if (varyByControls != null)
     {
         base._varyByControlsCollection = varyByControls.Split(new char[] { ';' });
     }
     base._varyByCustom  = varyByCustom;
     base._guid          = guid;
     this._buildMethod   = buildMethod;
     base._sqlDependency = sqlDependency;
     base._provider      = providerName;
 }
예제 #15
0
        //HashAlgorithm hash = MD5.Create();
        public IDynamicEvaluator GetEvaluator(BuildMethod method)
        {
            IDynamicEvaluator stored;

            int key = method.GetHashCode();//Convert.ToBase64String(hash.ComputeHash(System.Text.Encoding.Unicode.GetBytes(methods.ToString())));
            if (evaluators.ContainsKey(key))
            {
                evaluators.TryGetValue(key, out stored);
            }
            else
            {
                stored = new ReflectionEvaluator(method);
                evaluators.Add(key, stored);
            }
            return stored;
        }
예제 #16
0
 /// <include file='doc\PartialCachingControl.uex' path='docs/doc[@for="StaticPartialCachingControl.StaticPartialCachingControl"]/*' />
 /// <internalonly/>
 /// <devdoc>
 ///    <para>[To be supplied.]</para>
 /// </devdoc>
 public StaticPartialCachingControl(string ctrlID, string guid, int duration,
                                    string varyByParams, string varyByControls, string varyByCustom,
                                    BuildMethod buildMethod)
 {
     _ctrlID   = ctrlID;
     _duration = duration;
     if (varyByParams != null)
     {
         _varyByParamsCollection = varyByParams.Split(s_varySeparators);
     }
     if (varyByControls != null)
     {
         _varyByControlsCollection = varyByControls.Split(s_varySeparators);
     }
     _varyByCustom = varyByCustom;
     _guid         = guid;
     _buildMethod  = buildMethod;
 }
예제 #17
0
        public StaticPartialCachingControl(string ctrlID, string guid, int duration,
                                           string varyByParams, string varyByControls, string varyByCustom, string sqlDependency,
                                           BuildMethod buildMethod, string providerName)
        {
            _ctrlID  = ctrlID;
            Duration = new TimeSpan(0 /*hours*/, 0 /*mins*/, duration /*seconds*/);

            SetVaryByParamsCollectionFromString(varyByParams);

            if (varyByControls != null)
            {
                _varyByControlsCollection = varyByControls.Split(varySeparator);
            }
            _varyByCustom  = varyByCustom;
            _guid          = guid;
            _buildMethod   = buildMethod;
            _sqlDependency = sqlDependency;
            _provider      = providerName;
        }
예제 #18
0
 public void DefineExpect(string directory)
 {
     expect           = new Settings();
     expect.Directory = directory;
     buildMethod      = BuildResultSetsBased;
 }
 public static void BuildCachedControl(Control parent, string ctrlID, string guid, int duration, string varyByParams, string varyByControls, string varyByCustom, BuildMethod buildMethod)
 {
 }
 public static void BuildCachedControl(Control parent, string ctrlID, string guid, int duration, string varyByParams, string varyByControls, string varyByCustom, string sqlDependency, BuildMethod buildMethod, string providerName)
 {
 }
 public StaticPartialCachingControl(string ctrlID, string guid, int duration, string varyByParams, string varyByControls, string varyByCustom, BuildMethod buildMethod)
 {
 }
 public StaticPartialCachingControl(string ctrlID, string guid, int duration, string varyByParams, string varyByControls, string varyByCustom, string sqlDependency, BuildMethod buildMethod, string providerName)
 {
 }
 public StaticPartialCachingControl(string ctrlID, string guid, int duration, string varyByParams, string varyByControls, string varyByCustom, BuildMethod buildMethod) : this(ctrlID, guid, duration, varyByParams, varyByControls, varyByCustom, null, buildMethod, null)
 {
 }
 public static void BuildCachedControl(Control parent, string ctrlID, string guid, int duration, string varyByParams, string varyByControls, string varyByCustom, string sqlDependency, BuildMethod buildMethod, string providerName)
 {
     StaticPartialCachingControl control = new StaticPartialCachingControl(ctrlID, guid, duration, varyByParams, varyByControls, varyByCustom, sqlDependency, buildMethod, providerName);
     ((IParserAccessor) parent).AddParsedSubObject(control);
 }
 public static void BuildCachedControl(Control parent, string ctrlID, string guid, int duration, string varyByParams, string varyByControls, string varyByCustom, BuildMethod buildMethod)
 {
 }
예제 #26
0
    /*
     * Called by generated code (hence must be public).
     * Create a StaticPartialCachingControl and add it as a child
     */

    /// <internalonly/>
    /// <devdoc>
    ///    <para>[To be supplied.]</para>
    /// </devdoc>
    static public void BuildCachedControl(Control parent, string ctrlID, string guid,
        int duration, string varyByParams, string varyByControls, string varyByCustom,
        BuildMethod buildMethod) {
        BuildCachedControl(parent, ctrlID, guid, duration, varyByParams,
            varyByControls, varyByCustom, null, buildMethod, null);
    }
예제 #27
0
    public StaticPartialCachingControl(string ctrlID, string guid, int duration,
        string varyByParams, string varyByControls, string varyByCustom, string sqlDependency, 
        BuildMethod buildMethod, string providerName) {
        _ctrlID = ctrlID;
        Duration = new TimeSpan(0 /*hours*/, 0 /*mins*/, duration /*seconds*/);

        SetVaryByParamsCollectionFromString(varyByParams);

        if (varyByControls != null)
            _varyByControlsCollection = varyByControls.Split(varySeparator);
        _varyByCustom = varyByCustom;
        _guid = guid;
        _buildMethod = buildMethod;
        _sqlDependency = sqlDependency;
        _provider = providerName;
    }
 public static void BuildCachedControl(Control parent, string ctrlID, string guid, int duration, string varyByParams, string varyByControls, string varyByCustom, string sqlDependency, BuildMethod buildMethod, string providerName)
 {
 }
 public StaticPartialCachingControl(string ctrlID, string guid, int duration, string varyByParams, string varyByControls, string varyByCustom, string sqlDependency, BuildMethod buildMethod)
 {
 }