Comments (11)
@falahati I'm not quite sure to understand your issue, can you elaborate it with a sample code?
from embedio.
Unfortunately I dont have access to my development computer now.
But for now if it helps I try to clearify.
I wanted to write a custom request handler. For doing so I need to add a Map object. Am I correct?
Well, for processing these request I need to use ResponseHandler delegate. In definition of this delegate you used a reference to System.Net.HttpListenerContext.
But this type is not available in portable class profiles. So I cant use the delegate.
We need to have a local proxy class for this type in main project and fix the delegate defination.
I will post a sample code asap
from embedio.
Did you have the sample code?
from embedio.
Is this fixed because of #41 ?
from embedio.
I don't think so, the requirement seems to be different but I'm not quite sure to understand it.
from embedio.
Well this problem was about PCL profiles. But now nuget package is not even supported on PCL profiles. So as there is no official support for any of PCL profiles for now, this issue is not related any more.
However, I strongly suggest making the code cross platform so it can be used on different environments.
from embedio.
I am still unsure of what needs to be done here... So @falahati all you need is a PCL build in the NuGet package that used to be there? Was the PCL package ever in the NuGet? We already do have cross-platform support so I don't suspect this would be too hard to do...
from embedio.
I created a PCL and trying to add EmbedIO, I got this issue:
Error Could not install package 'EmbedIO 1.1.1'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile78', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
from embedio.
@falahati which Profile are you using?
from embedio.
Won't work with any of PCL profiles.
I can't use a sample code to show you the problem now that it is impossible to install the NuGet package on PCL profiles. In fact, I can't even check to see if you actually solved the problem with #41 as you said.
So for now, the first step is to have a cross-platform portable library that can be used in PCL projects.
Now, I can see that you have two different projects for .NetCore and .Net4 so you can't actually merge these two projects into a PCL project. I suggest looking into the bait-and-switch pattern for this. You need to have a PCL project with the same name and copy your classes into it but without any actual code. Replacing all codes with "NotImplementedException". You can have another PCL library to share codes between you dummy project. .NetCore project and .Net4.5 code if it helps as well.
Now you need to make sure that all three projects (Dummy PCL one, .NetCore and .net4.5) are sharing one namespace, same name and same version.
After this, with a little tweaking of NuGet packages, you can have a true cross-platform library with each platform using the correct version of Library and PCL is possible.
Sorry I am little slow to reply :)
from embedio.
PCL will not be supported, as it has been superseded bye .NET Standard, which embedio supports as a build target. Closing issue.
from embedio.
Related Issues (20)
- Cannot control charset in ContentType header HOT 3
- How to send statuscode 202 HOT 1
- EmbedIO 3.5.0 NuGet package references wrong/old version of Unosquare.Swan.Lite HOT 22
- System.ObjectDisposedException when processing multiple requests at once HOT 2
- WithZipFile should open a read only handle(or have the option to) HOT 2
- FileModule or StaticFolderModule get stuck returning medium files HOT 4
- Add XML as response type
- EmbedIO Dual-Stack Localhost Listener Causes Empty Replies HOT 1
- How can I custom the Server header HOT 2
- Disable request logging only
- Cookies issue
- EmbedIO.Samples console app does not work when PublishAot is set to true HOT 2
- Web Server does not work in Xamarin.iOS (IOS-17) HOT 3
- How to report progess via api - event-stream
- HttpContext.OnClose not firing HOT 1
- Getting rid of double quotes around strings in a Web API response (turning off JSON serialization) HOT 1
- Issue Serving Static Folder Xamarin ( 3.5.2) Forms on Android
- Request.Url mixing up http and https
- server stop responding after some time HOT 4
- The return array is empty. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from embedio.