本文介绍了如何将C#转换为VB.NET?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
public static ConfigurationOptions redisConfigOpts { get; set; }
protected void Application_Start(object sender, EventArgs e)
{
// assign your local testing Redis instance address
RedisSessionProviderApp.Global.redisConfigOpts = ConfigurationOptions.Parse("redisipaddress:6379");
RedisSessionProviderApp.Global.redisConfigOpts.Proxy = Proxy.Twemproxy;
// give it to RedisSessionProvider
RedisConnectionConfig.GetSERedisServerConfig = (HttpContextBase context) =>
{
return new KeyValuePair<string, ConfigurationOptions>(
"DefaultConnection",
RedisSessionProviderApp.Global.redisConfigOpts);
};
RedisConnectionConfig.GetSERedisServerConfig = (HttpContextBase context) => {return new KeyValuePair<string, ConfigurationOptions>("DefaultConnection", RedisSessionProviderApp.Global.redisConfigOpts);
};
}
我的尝试:
尝试过不同的转换器,如telerik,fusion等
What I have tried:
Tried different converters like telerik, fusion etc
推荐答案
这篇关于如何将C#转换为VB.NET?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!