我创建了一个使用TagLib#(http://developer.novell.com/wiki/index.php/TagLib_Sharp)的WCF服务,该服务依赖于非托管dll(我认为是Win32)来完成大部分繁重工作.是否有机会在Azure中托管此WCF服务?
我确实在.csdef文件中找到了这个:
<WebRole name="WebRole" enableNativeCodeExecution="true">
Run Code Online (Sandbox Code Playgroud)
这样做我希望它做什么?
如果非托管代码是32位还是64位,那么附录是否重要?我从经验中知道尝试从64位WCF服务调用32位Dll不起作用,我相信Azure是64位平台.
我在IIS7上使用ISAPI-Rewrite.
如何在RewriteCond中组合[NC]和[OR]?[NC,OR]?使用和不使用"www"匹配域的简单方法是什么.?
这是一个草案:
RewriteCond %{HTTP_HOST} ^old-one.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.old-one.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^old-two.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.old-two.com$ [NC]
RewriteRule ^(.*)$ http://www.new-website.com/$1 [QSA,L,R=301]
Run Code Online (Sandbox Code Playgroud) using (FileStream fs = new FileStream(path, FileMode.Append, FileAccess.Write, FileShare.None))
{
using (StreamWriter sw = new StreamWriter(fs))
{
sw.WriteLine(DateTime.Now.ToString());
// multiple sw.WriteLine
}
}
Run Code Online (Sandbox Code Playgroud)
尽管FileShare设置为"None",但会启动异常"进程无法访问该文件,因为它正被另一个进程使用.
我处于多线程上下文中,并且文件未被写入/读取别的地方.
为什么?
我知道我们可以使用"站点"部分为许多站点提供一个WebRole.
我想知道这个限制:在哪种情况下创建一个新的WebRole会更好?