I am attempting to prove out that you can use a full trust proxy with SharePoint online. If you take a look at SPProxyOperation on MSDN, you'll see the little note that says Available In SharePoint Online under the assembly name. Great, fantastic!
But now how am I supposed to register my proxy with the user code service? All examples that I can find (that refer to a local environment), deploy a Farm solution and run the following code:
public override void FeatureActivated(SPFeatureReceiverProperties properties)
{
SPUserCodeService userCodeService = SPUserCodeService.Local;
if (userCodeService != null)
{
string assemblyName = this.GetType().Assembly.FullName;
SPProxyOperationType SendEmailOperation = new SPProxyOperationType(assemblyName, typeof(SendEmailProxy).FullName);
userCodeService.ProxyOperationTypes.Add(SendEmailOperation);
userCodeService.Update();
}
else { throw new ApplicationException("User Code Service not running."); }
}
Well the issue is pretty straight forward. Having a look at SPUserCodeService's documentation, it does NOT state Available In SharePoint Online. If that is the case, how am I supposed to register my proxy, which is clearly (er, according to MSDN) supported.