Exemplo n.º 1
0
        protected DistributedCache(IDistributedCache distributedCache)
        {
            TkDebug.AssertArgumentNull(distributedCache, nameof(distributedCache), null);

            Cache = distributedCache;
        }
Exemplo n.º 2
0
        public WeLuckyMoney(WeCardBaseInfo baseInfo)
        {
            TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null);

            BaseInof = baseInfo;
        }
Exemplo n.º 3
0
        public string GetHtml(Tk5FieldInfoEx field, IFieldValueProvider provider, bool needId)
        {
            TkDebug.AssertArgumentNull(field, "field", this);

            return(field.CheckBoxList(provider, needId));
        }
Exemplo n.º 4
0
 public WeCardList(params WeBatchAddCard[] cardList)
 {
     TkDebug.AssertArgumentNull(cardList, "cardList", null);
     CardList = new List <WeBatchAddCard>(cardList);
 }
Exemplo n.º 5
0
        public TkRazorHelperResult(Func <TextWriter, Task> asyncAction)
        {
            TkDebug.AssertArgumentNull(asyncAction, nameof(asyncAction), null);

            fWriteAction = asyncAction;
        }
Exemplo n.º 6
0
        /// <summary>
        /// 触发设置字段信息事件
        /// </summary>
        /// <param name="e">字段信息参数</param>
        protected virtual void OnSetFieldInfo(FieldInfoEventArgs e)
        {
            TkDebug.AssertArgumentNull(e, "e", this);

            EventUtil.ExecuteEventHandler(fEventHandlers, SetFieldInfoEvent, this, e);
        }
Exemplo n.º 7
0
        public CompanyOrgDataRight(IFieldInfo field)
        {
            TkDebug.AssertArgumentNull(field, "field", null);

            fField = field;
        }
Exemplo n.º 8
0
        public void AddChildTable(ChildTableInfo childTable)
        {
            TkDebug.AssertArgumentNull(childTable, "childTable", this);

            fChildTables.Add(childTable);
        }
Exemplo n.º 9
0
 public QueryStringWrapper(IQueryCollection queryString)
 {
     TkDebug.AssertArgumentNull(queryString, nameof(queryString), null);
     fQueryString = queryString;
 }
Exemplo n.º 10
0
        public static bool IsValidHost(JWTUserInfo userInfo, string host, int?port)
        {
            TkDebug.AssertArgumentNull(userInfo, nameof(userInfo), null);

            return(userInfo.Host == host && userInfo.Port == port);
        }
Exemplo n.º 11
0
        public string GetHtml(Tk5FieldInfoEx field, IFieldValueProvider provider, bool needId)
        {
            TkDebug.AssertArgumentNull(field, "field", this);

            return(field.MultipleEasySearch(provider, needId));
        }
Exemplo n.º 12
0
        public IEnumerable <IFieldValueProvider> CreateDataRowsProvider(INormalTableData tableData)
        {
            TkDebug.AssertArgumentNull(tableData, nameof(tableData), this);

            return(CreateDataRowsProvider(tableData.TableName));
        }
Exemplo n.º 13
0
        protected void Add(CodeItem item)
        {
            TkDebug.AssertArgumentNull(item, "item", this);

            fData.Add(item);
        }
Exemplo n.º 14
0
        public WeNewsMaterial(params MpNewsArticle[] articles)
        {
            TkDebug.AssertArgumentNull(articles, "articles", null);

            Articles = new List <MpNewsArticle>(articles);
        }
Exemplo n.º 15
0
 public TkRazorEngine(IEngineHandler handler)
 {
     TkDebug.AssertArgumentNull(handler, nameof(handler), null);
     fHandler             = handler;
     fHandler.RazorEngine = this;
 }
Exemplo n.º 16
0
 public Base64Encoder(TextWriter writer)
 {
     TkDebug.AssertArgumentNull(writer, "writer", null);
     fWriter = writer;
 }
Exemplo n.º 17
0
        protected virtual void OnUpdatedRow(UpdatingEventArgs e)
        {
            TkDebug.AssertArgumentNull(e, "e", this);

            EventUtil.ExecuteEventHandler(fEventHandlers, UpdatedRowEvent, this, e);
        }
Exemplo n.º 18
0
        protected override void OnSetMainResolver(TableResolver resolver)
        {
            TkDebug.AssertArgumentNull(resolver, "resolver", this);

            fListFields = resolver.ListFieldInfos;
        }
Exemplo n.º 19
0
 public static void CreateTable(ITableSchemeEx scheme, TkDbContext context)
 {
     TkDebug.AssertArgumentNull(scheme, "scheme", null);
     ExecuteScalar(context.ContextConfig.InternalSqlProvider.GetCreateTableSql(scheme), context);
 }
Exemplo n.º 20
0
        public bool Contains(string nickName)
        {
            TkDebug.AssertArgumentNull(nickName, "nickName", this);

            return(FieldList.ConstainsKey(nickName));
        }
Exemplo n.º 21
0
        public WeScenicTicket(WeCardBaseInfo baseInfo)
        {
            TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null);

            BaseInfo = baseInfo;
        }
Exemplo n.º 22
0
        public NullableConverter(ITkTypeConverter converter)
        {
            TkDebug.AssertArgumentNull(converter, "converter", null);

            fConverter = converter;
        }
Exemplo n.º 23
0
        public void Add(Article article)
        {
            TkDebug.AssertArgumentNull(article, "article", this);

            fArticles.Add(article);
        }
Exemplo n.º 24
0
        public void WriteTo(TextWriter writer)
        {
            TkDebug.AssertArgumentNull(writer, nameof(writer), this);

            writer.Write(Value);
        }
Exemplo n.º 25
0
        public JsonObjectCreatorAttribute(Type regType)
        {
            TkDebug.AssertArgumentNull(regType, "regType", null);

            RegType = regType;
        }
Exemplo n.º 26
0
 public DeliveryInfo(DeliveryType deliverType, long templateId, Express[] expresses)
     : this(deliverType, templateId)
 {
     TkDebug.AssertArgumentNull(expresses, "expresses", null);
     Expresses.AddRange(expresses);
 }
Exemplo n.º 27
0
        public override void Write(char[] buffer, int index, int count)
        {
            TkDebug.AssertArgumentNull(buffer, nameof(buffer), this);

            fCharBuffer.Append(buffer, index, count);
        }
Exemplo n.º 28
0
        public void AddArticle(MpNewsArticle article)
        {
            TkDebug.AssertArgumentNull(article, "article", this);

            Articles.Add(article);
        }
Exemplo n.º 29
0
        public CodeTableSource(string regName)
        {
            TkDebug.AssertArgumentNull(regName, "regName", null);

            RegName = regName;
        }
Exemplo n.º 30
0
        protected UserMassMessage(IEnumerable <string> users)
        {
            TkDebug.AssertArgumentNull(users, "users", null);

            fToUsers = new List <string>(users);
        }